Forums

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

groovy script help

Debraj neogi November 30, 2015

in a post-function, what's the syntax for a Condition (groovy expression) that basically says "Dev Assignee field is empty” (and must to be true for the post-function to apply)?

2 answers

0 votes
Phill Fox
Community Champion
November 30, 2015

You can use the following formula to check if an assignee field is empty and combine with other actions.

if (! cfValues['Assignee']) ...

 

Jamie Echlin _ScriptRunner - The Adaptavist Group_
Atlassian Partner
December 1, 2015

So for a condition on a post-function, for a custom field called Dev Assignee, it would be: cfValues['Dev Assignee'] that should be all that's required

0 votes
Jamie Echlin _ScriptRunner - The Adaptavist Group_
Atlassian Partner
November 30, 2015

Can you add the plugin tag otherwise people won't see this...

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events