Groovy issue - JMWE Comment on linked issue Edited


I'm having some issues getting the comment on linked issue post-function to work properly. The end result of this would be to add a comment onto a linked blocked issue when I transition the original issue. 

This functions fine when I do not set the Conditional Execution. 

However, when I add..

issue.get('labels') == 'test'

 ..the issue will transition fine, but does not add the comment.

If I add..

return (issue.get("labels").getName() == "test")

..I receive the following error when transitioning the issue:

 No signature of method: java.util.LinkedHashSet.getName() is applicable for argument types: () values: [] Possible solutions: getAt(int), getAt(java.lang.String), getAt(java.lang.String), getClass(), take(int)

I'd like to set this up to check the original issue for a few different field values (component, label, and some custom fields). If the fields don't match the requirements, the issue will still transition, but will not add a comment onto the linked issue.

Thank you for any assistance! 

0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted Thursday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

189 views 12 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot