Set worklog REST api accepts incorrect value for properties in json

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      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

            Assignee:
            Unassigned
            Reporter:
            Vijay U
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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