How do I print the text of the dropdown prompt of the JIRA rule?

Nikul Vyas December 11, 2023

I'm creating an automation to create a spike in an Epic and I have a dropdownlist prompt in the manual trigger, based on my selection I want to get the text printed into my spike summary follow by a text. 

For eg: Dropdown has 

Red

Blew

Green

Jello

 

I select Jello then the Spike summary should be :

"Jello is your selection"

 

I tried

1. {{triggerInput.myDropdown}} is your selection
2. {{trigger.inputs.myDropdown}} is your selection
3. {{triggerInput.myDropdown.name}} is your selection

 

All are giving me blank and I'm not able to find proper documentation on JIRA Prompts for dropdowns, can anyone guide me on this?

Thanks in advance!!

1 answer

1 accepted

2 votes
Answer accepted
Fernando Eugênio da Silva
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 11, 2023

@Nikul Vyas 

When you're using manual trigger with a field select, you just need to pass in for your issue create action the variable of the field

You can see

Captura de tela 2023-12-11 222507.png

You can see the variable that should be used when configuring the name of the field that should appear in your trigger manual.

So in the create issue action, for the summary you should only pass the variable and its new content. Like this: {{userInputs.color}} is your selection

 

Have you tried to use only your variable name?

Nikul Vyas December 11, 2023

Oh so silly of me didn't even watch at the bottom of the prompt. 🙈

Like Peter_DevSamurai likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events