How to set a condition in jira 4.3.4 workflow with simple conditions with groovy

I searched atlassian-answer.

But, I could not find what I want
I want that ; when some sub-task is resolved, transition proceed. if not.

I tried a lot of
- issue.subTaskObjects.findAll{ = "Customer Report"}.every{issue.resolutionObject}

- issue.subTaskObjects.findAll{ ="Customer Report"}.any{ ="Resolved"}

like these...

These nor working correctly.

how can ı do this ?
thanks in advance.

2 answers

1 accepted

0 votes

In both cases you should be using == not = .

Every and Any are diofferent as you can imagine.

In the 2nd closure in the first line you want "it", not issue. In the second line should be == (again).

If you get it a bit more correct then we can probably help further.

Hello Jamie, thanks for your answer. It is working.It is ok. issue.subTaskObjects.findAll{ ="Customer Report"}.any{ =="Resolved"} Well, I don't understand one point. at one side ="Customer Report" (one equals operator) at other side any{ =="Resolved"} (two equals operator) In normal, this would be a standard ? or Is there anything else ?

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,006 views 12 18
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