How can I use the Status Category in an automation script? We have multiple projects that each have unique workflows with a different status as the first "in progress" status or the "done" status. I want to populate a Start Date field when the issue moves to "in progress" but am looking for a way to not have to include all the statuses being used or having to modify when new projects and statuses are created. Similarly do the same when the issue hits the final status and populate an End Date field. This script works for Start Date but only for the projects that uses "In Progress" as their status. Can I use Status Category rather needing to include all the possible statuses in the "in progress" category?
Hey Greg,
I just tested and was able to do this by leaving the trigger for "When Transitioned" blank, so it applies to all status, then setting a condition in JQL.
You can set the condition for the JQL to be statusCategory = 4 for issues that are "In progress" / Blue
Then your action will apply to all issues when they are transitioned into in progress.
However if there is any issues that you do not want your action to happen on when you transition to in progress you may need to create a query that decides with more granularity. by including project, issues types, etc.
Thanks. Do you know what the statusCategory for "Done"/green is or how I can find that for myself?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is the doc for the statusCategory function. I believe done is 3
How to search using statusCategory() & statusCategoryChangeDate() function with JQL | Jira | Atlassian Documentation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, I did a search and determined that 2 is "To Do", 3 is "Done" and 4 is "In Progress". Thanks for your help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.