Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I prevent an issue from transitioning if there is no assignee

Cash Coyne
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.
March 29, 2022

We are on JIRA Server and have ScriptRunner.

I'm trying to make it so that when a user is looking at an issue, when they are in To Do and click on the In Progress button (not while they are in an edit screen), if there is no assignee for that issue, then it prevents them from going to in progress.

In editing the workflow, I've:

  • gone into Add Condition to Transition
  • selected "Allows the transition if this query matches a JQL query [ScriptRunner]"
  • used this JQL query: 
  • assignee is not empty
  • Done the preview and it seems to work that way

But when I'm looking at the issue, I see that there is no assignee, and I click on the In Progress button, it still allows the issue to transition.

 

I've also tried with a validator, using the Simple Scripted Validator option and this condition:

issue.assignee != ""

That didn't work either.

What am I doing wrong?

1 answer

1 vote
Trudy Claspill
Community Champion
March 29, 2022

Can you show us your Workflow diagram and point out to which transition(s) you added the condition?

Suggest an answer

Log in or Sign up to answer