Auto Assign an Epic based on a user picker custom field

Elif Alverson
Contributor
July 11, 2023

Hello, 

I am trying to auto assign an epic based on a required user picker custom field called HTBP which is filled at the ticket creation. Here is my automation and not sure how to continue? Thank you.

Screenshot 2023-07-11 at 4.26.03 PM.png

1 answer

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 11, 2023

Hello @Elif Alverson 

Instead of Specify User you need to change that to Another field value or comment, then you will be able to specify the custom User Picker field from which you want to copy the user.

Screen Shot 2023-07-11 at 2.00.27 PM.png

Elif Alverson
Contributor
July 11, 2023

@Trudy Claspill , thank you for your response.

What would I choose as the value to use ?

 

Screenshot 2023-07-11 at 5.15.05 PM.png

Like John Funk likes this
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 11, 2023

Oh, rats! I thought it would let you pick any User Picker custom field.

In that case, use the Smart Value option instead and for the smart value use

{{issue.your custom User Picker field name.accountId}}

Like # people like this
Elif Alverson
Contributor
July 11, 2023

It did not work. The assignee is "unassigned". Am I doing something wrong?

 

Screenshot 2023-07-11 at 7.03.44 PM.pngScreenshot 2023-07-11 at 7.03.53 PM.png

Like John Funk likes this
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 11, 2023

You need to substitute into the smart value the actual name of your custom User Picker field.

{{issue.your custom User Picker field name.accountId}}

Like # people like this
Elif Alverson
Contributor
July 11, 2023

Am I missing a step?

 

Screenshot 2023-07-11 at 7.37.16 PM.pngScreenshot 2023-07-11 at 7.38.45 PM.pngScreenshot 2023-07-11 at 7.38.55 PM.png

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 11, 2023

Replace only the "your custom User Picker field name"  text with the actual name of your field. The {{issue. and .accountId}} that come before and after are required parts of the smart value.

Like Elif Alverson likes this
Elif Alverson
Contributor
July 11, 2023

Same Result;

Screenshot 2023-07-11 at 7.53.56 PM.pngScreenshot 2023-07-11 at 7.54.05 PM.png

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 11, 2023

Can you show the entire rule, please?

Also please show the HRBP field within an issue? I want to see the field name.

Also try using a Log action to print the content of that field into the Audit Log just before the step where you try to use it.

Like Elif Alverson likes this
Elif Alverson
Contributor
July 12, 2023

@Trudy Claspill , I removed and re-added the Custom Field and it sis working great now. Thank you so much as always.

 

This works when the ticket is created ,  Is it possible to make this automation also work when the "HRBR" field is changed from one user to another? Thanks again.

Screenshot 2023-07-12 at 9.17.27 AM.png

Like Trudy Claspill likes this
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 12, 2023

If you use the Field Value Changed trigger and specify the HRBP field instead of the Issue Created trigger, that will trigger the rule both when the field is changed after creation and when the field is set during issue creation.

Like Elif Alverson likes this
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 12, 2023

I just noticed the logic you posted in the last copy of your rule:

Screen Shot 2023-07-12 at 7.53.44 AM.png

You should not be using a Branch here. If the HRBP field is a single user picker there is no need to use a branch to get the value. And Assignee can have only one value so even if HRBP has multiple values only one of them can be inserted into the Assignee field.

Like Elif Alverson likes this
Elif Alverson
Contributor
July 12, 2023

@Trudy Claspill , I changed the automation based on your recommendation and everything works great. Thank you so much! You are awesome as always.

 

Screenshot 2023-07-12 at 12.17.43 PM.png

Like Trudy Claspill likes this

Suggest an answer

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

Atlassian Community Events