Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Condition to execute transition in few specific project when the tagged sprint is Active Sprint

Karthikeyan Devi August 29, 2023

In our organization we use Shared Configuration for project creation.

We have created around 26 projects with the same configuration (Say Project A to Z).

 Now we wanted to restrict user from transiting from "To Do" state to "In Progress" state only when the tagged sprint is an active sprint for only few projects (say Project A, Project F, Project K, Project V).

Is there way to do this in JIRA datacenter version "Jira v9.2.0"

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 29, 2023

Hi @Karthikeyan Devi 

The option to achieve this is to have a JQL condition or validator within your workflow.

This will require an app to achieve this, app like;

  • JMWE
  • JSU
  • JWT
  • Scriptrunner

These apps are providing additional functions to workflows, Ootb this can't be achieved in in Jira.

Karthikeyan Devi August 29, 2023

Workflow condition.png

We tried using the JSU but its not working as expected.

1. It works for those projects mentioned in the condition but for those projects that are not mentioned in the condition are still restricted.

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 29, 2023

Hi @Karthikeyan Devi 

I don't think it's necessary to specify the projects you don't want to apply the condition to, You only create a condition for the matching projects.

If this still doesn't work, then make a copy of you workflow scheme and copy the workflow that applies to your issues.

Set the condition on that workflow and add this flow to the new workflow scheme.

Set this scheme on the projects that apply

Vicente Domínguez _Decadis AG_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 29, 2023

Hello @Karthikeyan Devi and thank you @Marc - Devoteam for mentioning us!

I am part of the Support Team of Decadis and I would be glad to share with you a possible solution with the Jira Workflow Toolbox Logical validator.

The following expression for the Logical validator would evaluate if the transitioned issue is in any of the stated projects and, only if it is, it would evaluate if it is in an active sprint. Issues from other projects will be transitioned.

%{issue.project.key} in [“PA”, "PF", “PK”] IMPLIES count(issuesFromJQL("key = "+ %{issue.key} +" and Sprint in openSprints () and Sprint not in futureSprints()"")) = 1

If you will test this configuration, please, replace the project keys “PA”, "PF", “PK” with the ones corresponding to the projects of your choice.

Some more use cases for our Logical validator can be found in our documentation.

Please, let us know if you need further assistance in this thread or via our Support Service Desk.

Best regards,

Vicente

Karthikeyan Devi August 29, 2023

Hi @Vicente Domínguez _Decadis AG_ Thanks for your help but we are not in a situation to go for new plugin right now. 

Problem with the current configuration  is that it expects the user to have access to all projects mentioned in the condition. we are trying to contact the JSU Plugin support team.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.2.0
TAGS
AUG Leaders

Upcoming Jira Events