Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,497
Community Members
 
Community Events
165
Community Groups

jira automation accessing project properties

Hello,

Is it possible with a jira automation rule to get a jira project property?  You specify the project property key and you get the project property value. I already searched in the available smart values but didn't find anything.

Thanks

3 answers

2 accepted

0 votes
Answer accepted

Hi @Luc Noppen 

You can read the entity properties, as is shown here for issues: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--issue.properties--

For a project property, it would be:

{{project.properties."myPropertyName"}}

The key is context...if the trigger is for a project, use above.  If instead it is for an issue you might need to explicitly call the REST API from a web request in the rule to get the project to access the properties.  Before trying that, perhaps first try {{issue.project.properties."myPropertyName"}} to see if they are available.

Kind regards,
Bill

Hello,

I'll test this before accepting the answer.

Thanks for your reply.

Kind regards

Like Bill Sheboy likes this
0 votes
Answer accepted

Hi Luc,

what do you mean to get the jira property? What is your purpose?

If you mean to edit the property in automation there is a specific section to do that.

Screenshot 2022-05-24 at 10.37.59.png

Hope it helps.

Best,
Alberto

Hello,

With your answer I'm able to set a project property and with the answer of Bill Sheboy I'm able to read the project property.

Your answers combined give me what I need.

Thanks.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,110 views 34 44
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you