Hello,
I need help creating an automation rule that blocks a user to move a second issue to "in progress", if they already have one issue in progress.
Dear @Adriana Marquez ,
You can create an automation for this using Advanced compare condition. Please follow the below steps, Create a New Rule.
Issue transitioned
.New condition
and select Advanced compare condition
.assignee = currentUser() AND status = "In Progress" AND issuekey != "{{issue.key}}"
. This JQL checks for other issues in "In Progress" status for the current user, excluding the current issue.is greater than
.0
. This means if there is any issue (more than 0) already in progress for the user, the condition will pass.Save
.New action
and select either Send email
, Create comment
, or any other notification action available.I achieved this as below.
JQL: assignee = currentUser() AND status = "In Progress" AND issuekey != "{{issue.key}}"
if this does not work for you then you need to go for scripting using script runner (Listener script). Also, you can add custom script workflow validator as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I respectfully suggest you are trying to fix a process / team behavior problem with an automation rule.
Instead consider: why are team members trying to move multiple issues into in-progress, when the team apparently has a working agreement / policy to only work on one item at a time?
Understanding the root cause by discussing it as a team may lead to better solutions than using Jira to send notifications...or to undo the issue transition. For example, some such causes could be:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the concern.
We have it covered. There's no issue in my team. I just wanted to know how to do the automation to learn advanced rules and implement it in case it's needed.
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.