It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Scripted JQL Condition not working

Hans-Hermann Hunfeld Aug 28, 2015

Hi all,

tried to get a scripted JQL condition working, but i have some problems with that setup. Here´s the use case:

Workflow A has a post workflow action which fires after all other actions:
Transition 41 will be triggered on all issues linked to the current issue through the has Epic link type.


Workflow B (which is basically a copy of A) is acting as expected, so far all is ok. But, while adding a single condition in workflow B to only allow this transaction when:
Script workflow function : The action will be allowed if the issue matches the JQL query: "project = "COPY Way Forward" and issuetype = Epic and issueFunction not in linkedIssuesOf("Status != Closed", "has Epic")"

Logically this is correct, checked it in parallel in the issue search (only when all linked issues are closed the according epic is shown in the result, otherwise not; Condition Validator plugin also confirms this).

The idea behind this additional condition is to not allow this triggered transaction when at least one issue linked to the epic is not in status closed. I assume that the update of the issue in workflow A is not fast enough to pass the condition build in workflow B, but how to achive this goal?

Any ideas are welcome!

Thanks & regards,
Hans-Hermann

2 answers

0 votes
Nicolas Bourdages Aug 28, 2015

I've had issues sometimes when using these advanced queries in places other than the issue search. Have you tried saving that query as a filter, and doing "filter = myfilter" as your query in the post-function?

Hans-Hermann Hunfeld Aug 28, 2015

Hi Nicolas, did a quick test, the behavior is still the same as before. Nevertheless, thanks for your answer!

0 votes
Hans-Hermann Hunfeld Sep 02, 2015

@Jamie Echlin [Adaptavist]: Do you got an idea what might going wrong here?

The only workaround i know is to create an automation rule where to check regularly the same conditions and update the issue (in my example it would be the Epic to be closed if all linked issues are closed).

Thanks for any hints!

Regards,
Hans-Hermann

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Off-topic

Disney Live Action Reboots: Are you for or against?

Happy Friday Everyone! Today marks the international release of Disney's live action version of the animated classic Aladdin. I know that this movie was met with some controversy of over cast...

117 views 19 6
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you