Forums

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

Automation Smart Value for Project Role

Taylor Chappell
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.
November 13, 2024

I'm trying to run an automation that sets a custom user picker field to users in a project role.

I initially looked at using the smart value {{project.role["Approver 1"].members}} in the selection field in the "Edit Issue" component, but that doesn't return anything.

I've looked at a couple other posts that make a ton of sense to me at the moment:

If someone could either point me in the right direction to know where to edit what condition, use the proper smart value, or anything else, I would appreciate it.

I am using Jira Data Center in a Software type project.

1 answer

0 votes
Kseniia Trushnikova
Community Champion
November 19, 2024

Hi @Taylor Chappell,

Both posts you give links to are for Jira Cloud. In Jira DC, you can only get the project role members by sending a web request in Automation.

Check out this guide Automation For Jira - How to create a rule that adds to the watcher list of an issue the members of a project role. I tried setting up a test rule on my instance using this guide and was able to get members of my project role. So it should work for you too.

My rule as a reference:

Screenshot 2024-11-19 at 15.09.51.png

The smart value {{webhookResponse.body.actors.name}} returns usernames of role members.

Suggest an answer

Log in or Sign up to answer