Forums

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

How to assign a user with smart values

Jodie Sleeman August 18, 2021

Hi

I'm trying to create a automation rule that will assign the ticket to a user using the smart value field I have created called Development Team.

The smart value is a People field and I have created the below rule.  I've used Assign the issue to Smart value and the enter {{Development Team}} which what I have called my field.

 

I'm also having the same issue when trying to use smart values from a dropdown field, the rule doesn't work and I'm not sure why.

 

Any help would be appreciated as I've not done automation with smart values before.

 

Thanks 

Automation rule.JPG

2 answers

2 votes
Daniel Ebers
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.
August 22, 2021

Hi @Jodie Sleeman

it is available when you choose "Edit issue fields" as an action and there expand the "More options" dropdown.

In "Additional fields" you need to clear the example values and then insert the code Ravi suggested.

grafik.png

You can see above how it should look like.

Regards,
Daniel

1 vote
Ravi Sagar _Sparxsys_
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.
August 18, 2021

Hi @Jodie Sleeman 

You have to use advanced edit to get the account id of the user from the people field.

Try this to set the assignee.

{
"fields": {
"assignee": "{{issue.People field. accountId}}"
}
}   

 Ravi

Jodie Sleeman August 19, 2021

Hi @Ravi Sagar _Sparxsys_ 

Thank you for your reply.

Where would I find advanced editing? I've tried looking at all the different kinds of components within the New Action section of my automation rule but can't find it.

I'm using a Jira Cloud if that helps.

Thank you in advanced 

Jodie.

Christian Hemminghaus
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 27, 2022

Hi,

the proposed code did not work for me. The following did, though:

{
"fields": {
"assignee": { "id": "{{issue.People field.accountId}}" }
}
}

This seems to be a recent change due to GDPR. See here and search for "assignee".

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events