Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to use the new "userInputs" fields to set custom field value in clone automation.

David Garrett June 15, 2023

We have this new feature for manual automation to prompt for input on trigger and then set a userInput smart value from that prompt. Reference: Request input from users when a Manual rule is tri... - Atlassian Community

I have set a single choice droplist question in the manual automation trigger and have it create a smart value - {{userInputs.Asset.RequestType}}. 

Later on in the automation, I have an action to clone the ticket to a different Jira project and would like to use the smart value that I collected at the start of the automation to set a value on a customfield (which is a single select droplist) with the same options as I set in the manual automation trigger. The custom field is a required field so it needs to be filled in as part of the clone action and is not present in the ticket that we are cloning. I was hoping to use this new userInput smart value to set the required customfield curing the clone action. There is no option to choose the custom field and select the userInput smart value. The only option that I see is to use the "More options" and drop in additional fields in the JSON. I however am not able to get it to recognize the values. I know that this is incorrect.

"customfield_13988" : {{userInputs.Asset.RequestType}}

 

where:

  • "customfield_13988" is the custom single select droplist
  • {{userInputs.Asset.RequestType}} is the droplist value selected from the input trigger. The value is the same as what is in "customfield_13988" so that it would select the correct value from the field.

 

1 answer

1 accepted

2 votes
Answer accepted
Darryl Lee
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 15, 2023

Hi @David Garrett - 

You actually can use a smart value in a Single Select custom field. It's just the UI is a little... fiddly. You have to type {{yourvalue... into the field, and it will pop an option:

Smart value '{{yourvalue...'

Screenshot 2023-06-15 at 1.07.56 PM.png

Let us know if that doesn't work for you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events