"Time in Status" custom field only updates when the issue is Resolved

XMLWordPrintable

    • 2
    • Severity 3 - Minor

      Summary

      When attempting to pull the "Time in Status" data from Jira REST API, it seems that the field is only updated when the issue is resolved (has a value in the Resolution field). If the issue has been transitioned a few times, but never had the value in the Resolution field, the custom field will still show "null".

      Environment

      • Atlassian Cloud

      Steps to Reproduce

      1. Create a Jira issue.
      2. Transition it to a new status which does not set the Resolution field.
      3. Since the REST endpoint we are using is a GET, we can directly check through the browser.
        • Through the browser, go to "<instance-name>.atlassian.net/rest/api/2/issue/<issue-key>"
      4. In the returned results, search for the value of customfield_<ID of Time In Status custom field>.
        • For example, "customfield_10013".

      Expected Results

      The "Time in Status" custom field should show the time that the issue was in the first status. For example,

      "customfield_10013":"1_*:*_1_*:*_16552_*|*_10002_*:*_1_*:*_0"
      

      Actual Results

      The "Time in Status" custom field shows as null.

      "customfield_10013":null
      

      Workaround

      None

            Assignee:
            Unassigned
            Reporter:
            Sadiq (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: