Forums

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

Access Jira Project Variable in Post Function

Bernd
Contributor
September 17, 2018

I created a Project Variable (e.g. projectclass = xzy) and need to use this value as a condition in a workflow.

Question: how exactly can I reference the project variable "projectclass" to create a condition?

 

If projectclasse == "Value1" then transition is allowed for users in group xx

If projectclasse == "Value2" then transition is allowed for users in group yy

I do have Scriptrunner available if that helps.

Any idea?

Thanks in advance,

Bernd

 

1 answer

0 votes
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.
September 17, 2018

Where are you setting these "project variables"?  What are they?

Bernd
Contributor
September 17, 2018

You go to the summary page of a project.

In the upper right corner (Jira 7.1.1) click on Actions -> Project Variables

There you can define value pairs (name - value)

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.
September 17, 2018

That's not a native Jira function - which add-on are you using to provide it?

Bernd
Contributor
September 17, 2018

You are correct - it is from Jira Suite Utilities. I checked their documentation and it turns out they use this for something very different. It does not solve my issue.

So... in a sense you answered my question :-)

I have to look for another solution. Maybe project category is something I can use for that.

Thank you

Suggest an answer

Log in or Sign up to answer