Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Set Workflow Condition to behave differently base on different project

Helen Rodgers April 10, 2019

I have 2 projects using the same workflow (shared scheme), project A admin wanted to be able to execute ALL transition, but Project B admin wanted to keep it the way it is.

Example: project A admin want to execute "Start Progress" transition on behalf of Assignee, Project B only allow Assignee to execute to do so.

How do I achieve this in Workflow condition without having to clone and modify it. It may not be good practice to have 2 workflow which is 98% identical. Is there any good workaround?

2 answers

2 accepted

0 votes
Answer accepted
Thorsten Letschert _Decadis AG_
Atlassian Partner
April 18, 2019

Hi @Helen Rodgers ,

as Nic already mentioned you'll need an additional app to do so - either for scripting, e.g. ScriptRunner or one of the workflow enhancement apps (see https://marketplace.atlassian.com/categories/workflow as a good starting point).

An example related to one of those, referring to Jira Workflow Toolbox:

Here, you could just add a simple boolean validator that reads

%{issue.project.key} = "keyOfProjectA" OR (%{issue.project.key} = "keyOfProjectB" AND %{issue.assignee} = %{system.currentUser})

Cheers
Thorsten

0 votes
Answer accepted
Nic Brough -Adaptavist-
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.
April 17, 2019

Code.  You'll need something that can do a condition that says

if project A, then allow users matching rule X, else allow users matching rule Y

Do you have one of the scripting Apps?

Helen Rodgers May 16, 2019

We just purchase ScriptRunner!

Suggest an answer

Log in or Sign up to answer