Use StatusCategoryChange in automation

greg.kahl@wexinc.com October 26, 2023

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?  Start Date.JPG

1 answer

1 accepted

0 votes
Answer accepted
Stanley Duback
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 26, 2023

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.

Screenshot 2023-10-26 135059.png

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.

greg.kahl@wexinc.com October 26, 2023

Thanks.  Do you know what the statusCategory for "Done"/green is or how I can find that for myself?

Stanley Duback
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 26, 2023
greg.kahl@wexinc.com October 27, 2023

Thanks, I did a search and determined that 2 is "To Do", 3 is "Done" and 4 is "In Progress".  Thanks for your help 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events