Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-81321

Set worklog REST api accepts incorrect value for properties in json

    XMLWordPrintable

Details

    Description

      Issue Summary

      Currently SET worklog property API : https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklog-properties/#api-rest-api-3-issue-issueidorkey-worklog-worklogid-properties-propertykey-put accept a string value for property value which is incorrect.

      Steps to Reproduce

      1. Send the below request to Set worklog property api :
        rest/api/3/issue/{issueIdOrKey}/worklog/{worklogId}/properties/{propertyKey}' 
        

        with a String value "a".

      Expected Results

      It should throw a 400 error explaining the proper format. Sample below.

      {
        "value": {
          "system.conversation.id": "b1bf38be-5e94-4b40-a3b8-9278735ee1e6",
          "system.support.time": "1m"
        }
      }
      

      Actual Results

      It successfully accepts the String value.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        Activity

          People

            Unassigned Unassigned
            vujjannavar@atlassian.com Vijay U
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.25h
                0.25h