I would like to create a Transition Validator using the Simple Scripted Validator to check the Assignee field is blank or unassigned at the time of transition. It seems logical to me I could take the example provided "Assignee changed (Workflow functions only)"
issue.assignee != originalIssue.assignee
And change it to:
issue.assignee == NULL
But I get an error about NULL being an undeclared variable.
Is there a simple 1 or 2 line way to do this?
I have other fields I would also like to verify the values of or verify they have or don't have a value when transitioning an issue. Would it be different for other types of fields?
Hello,
You should be able to do something like this in a simple scripted validator:
if(!issue.assignee){ return false }
Let me know if that works for you!
Jenna
Jenna, this one worked for me, thanks!
issue.assignee == null did not work for some reason, but I'll quit fretting since yours did.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually none of these worked for me. Below one worked:
issue.assigneeId != null || false
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The previous answers are technically correct for the version of Jira at the time. I have found that this is the correct solution for the Jira 8.x product.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried issue.assignee == null ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That worked!
Now I feel stupid.
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.
Happens with the best of the best :) Good luck.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can you please help me create a groovy script:
If Assignee field was changed from "Unassigned"
then
move an issue to "status name"
I'm trying to use "Fast-track transition an issue"
Events: Issue Assigned
Condition: I'm not sure
Action: "status name"
issue.assignee == null is not working for me
issue.assignee != originalIssue.assignee - is working for me however it's working also if I change assignee from "someone" to "Unassigned"
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.