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

Setting a workflow condition based on 'Status Category' field doesn't work

XMLWordPrintable

      Issue Summary

      While sending a GET request to the Get all status categories API endpoint, you can check the id's and names of the respective status categories in your instance. Using that information, you should be able to set a workflow (Value field) condition in order to restrict issues in a specific status category from being able to use the given transition. 

      Steps to Reproduce

      1. Check the id's/names using the above API endpoint
      2. Navigate to Project settings -> Workflows and edit the workflow for the given issue type(s).
      3. Add a 'Value field' condition on the transition in question, for instance, 'Status Category' = 'To Do' as a 'String' OR 'Status Category' = '2' as an 'Option ID'. Keep in mind those are only examples, the id might differ in your instance and you may try to use a different condition (like '!=') instead.

      Expected Results

      The given transition isn't visible if the above condition isn't met.

      Actual Results

      The given transition is visible in case you used the '!=' condition, and not visible if '=' was used, despite matching id/name of the status category.

      Workaround

      • The only (close) workaround is to use the 'Previous Status Condition' condition, although it might come with additional administrative effort depending on the number of statuses in the given status category.

      Community discussion: https://community.atlassian.com/t5/Jira-questions/Value-Field-Condition-Current-Status-Status-Category/qaq-p/2229228

              Unassigned Unassigned
              d509fcb934c4 Arek Fedorowicz
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: