Forums

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

Jira automation smart value for workflow scheme

Joel Batac
Contributor
February 13, 2023

Hi, 

 Is there a smart value for jira automation to check/condition for workflow, workflow scheme or screen?

1 answer

0 votes
Trudy Claspill
Community Champion
February 13, 2023

Hello @Joel Batac 

Can you tell us about the problem you are trying to solve where you would need that information?

Joel Batac
Contributor
February 13, 2023

I'm trying to automate this https://okapya.atlassian.net/wiki/spaces/CHKDOC5/pages/3236626557/Import+a+template+on+issue+creation

and I want to apply this to projects using template (same workflow or screen scheme).

 

My problem is projects in template are huge and constantly changing (offboarding and onboarding). Instead of applying the rule for each project, which is not feasible.  I want to apply to something (via if condition) projects in template have all in common. 

Trudy Claspill
Community Champion
February 13, 2023

Per this post

https://community.atlassian.com/t5/Jira-questions/How-to-get-the-names-of-the-workflows-used-by-a-project-using/qaq-p/1222180

...an answer from @Ivan Tovbin suggests using this API to get the workflow scheme associated with a specific project.

/rest/projectconfig/1/workflowscheme/{projectIdOrKey}

I tried that against Data Center v8.16.1, and it worked with a Project Key but not the Project ID (numeric).

You would have to use a Send Web Request action to execute that REST API call and then parse the results to find the Workflow Scheme name (or ID).

The rule would need to be a Global rule if you want to run it against all projects without explicitly listing the projects against which it would run.

If you have Work Management and Service projects on the same instance, and you want this to apply only to Software projects then you might want to add a Condition early in the rule to check the Project Type.

Suggest an answer

Log in or Sign up to answer