You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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?
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.