Condition a workflow transition based on statuses of all other issues on the same project

Hello,

I'm trying to figure out how to add a condition to a workflow transition to make sure the transition can only take place after all other issues on the same project are closed (or resolved).

Can anyone help?

Thanks,

Ronen.

5 answers

1 accepted

Hi Ronen,

There is an indirect way to do it using JIRA Workflow Toolbox's project properties:

1.- Create a property in your project called "OpenIssues" containing the number current of open issues in the project.

2.- Add in issue creation transition and issue reopening transitions the following post-functions:

- Read project property "OpenIssues"

- Increase the read number.

- Write the increased number into project property "OpenIssues"

3.- Add in all the transitions closing or resolving the issues the following post-functions:

- Read project property "OpenIssues"

- Decrease the read number.

- Write the decreased number into project property "OpenIssues"

You can check the value of the project property "OpenIssues" in any transition of the workflow using available condition and validator in JIRA Workflow Toolbox.

IMPORTANT WARNING!!! You shouldn't allow to move issues to this project, because the project property "OpenIssues" won't be updated.

Regards,

Fidel.

Thank you fidel.

It's a good answer although I hoped for a feature that can list all issues of the same project (which should be similar to list all linked issues).

Maybe a feature request for the next version? :-)

Thank you,

Ronen.

You can bet on it!!! Maybe in 2 weeks.

Regards,

Fidel.

Hi Ronen,

With recently released version 2.0.8 of JIRA Workflow Toolbox, you can implement a more direct solution for you question. You will need to use condition "Condition on non-linked issue" or validator "Validation on non-linked issue" and virtual field "Issues in current project".

The following screenshots shows a possible solution that requires that all bugs, improvements and new features in the project are resolved or closed for the transition to be triggered:

SCREENSHOT 1/2:

SCREENSHOT 2/2:

I hope the solution is clear enough,

Regards,

Fidel Castro Armario.

"Condition on non-linked issue" and validator "Validation on non-linked issue" has been renamed in most recent version of the plugin to "Condition on a list of issue keys" and "Validation on a list of issue keys".

Since version 2.1.26 of JIRA Workflow Toolbox, field "Issues in current project" is renamed to "Rest of issues in the project".

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

116 views 0 4
Read article

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