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

Automation Manually Triggered-"Variable Name"

Caressa DeQuardo March 25, 2024

Hey we're creating a manually triggered automation in JWM and we want to use the "Prompt for input when this rule is triggered" feature so that users are prompted to fill out specific data on the issue that will be created but we're having issues with the the field.

Is this featured meant to create a new field on the issue or is meant to reflect an already existing field on the issue?

We tried to put a test field under field name but that value did not appear anywhere on the issue.

I then tried to use the name of an existing field on the issue type but the automation failed and I'm not able to see an audit log failure.

 

In the variable name we're using the suggested

{{userInputs.{{userInputs.{{userInputs.smartValueName}}}}}}

 

What am I doing wrong?

 


atlassian com.pngScreenshot 2024-03-25 120753.pngScreenshot 2024-03-25 120718.png

 

2 answers

2 votes
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 25, 2024

Hi @Caressa DeQuardo,

Welcome to Atlassian Community!

The input prompt is unrelated to any fields on your issue, but you could use the value that user puts in as a value for a field on it. 

Looking at your screenshots it looks like you overcomplicated the manual trigger. Here is an example of a rule I just created:

Screenshot 2024-03-25 at 1.58.10 PM.png 

I suspect that it is the variable name that is causing your automation to fail. As you can see in my example I just used the same name as the field/display name, and you can then use that by using {{userInputs.something}} to set a field on the issue if you like.

Caressa DeQuardo March 25, 2024

I attempted this but it was unsuccessful. The field value does not populate in the created issue

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 25, 2024

How do you populate the field value?

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 25, 2024

It should be pretty straightforward, I expanded my test from above so that it will add the input to the description. Here is what it looks like when I run it:

Screenshot 2024-03-25 at 4.22.38 PM.png

And this what it looks like after

Screenshot 2024-03-25 at 4.22.59 PM.png

And this is what the edit issue field looks like:

Screenshot 2024-03-25 at 4.26.05 PM.png

 

0 votes
Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 25, 2024

@Caressa DeQuardo -

Welcome to the community.  I agreed with @Mikael Sandberg stated, you can just use the same name as the field name in the smartvalue syntax.  Take a look at a similar ask in the past - https://community.atlassian.com/t5/Automation-questions/How-to-use-the-new-quot-userInputs-quot-fields-to-set-custom/qaq-p/2390932

Hope this also helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

Suggest an answer

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

Atlassian Community Events