Forums

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

Smart value for Forms content

Or Shaked March 9, 2025

Hello,

I'm trying to fetch the content of a form field in an Automation.

  • The field isn't connected to a JIRA field.
  • I added a field key to the relevant field- 'reqbody'
  • The field is a Text type.
  • I'm triggering the automation manually from the ticket within the JSM project.

I tried to use the following smart values with no success (it just returns an empty text)

{{issue.forms.last.reqbody}}, {{triggerissue.forms.last.reqbody}}, {{forms.last.reqbody}}

Any idea what I'm missing here?

Thanks,

2 answers

2 votes
Darryl Lee
Community Champion
March 9, 2025

Hi @Or Shaked -

@Vinubabu _Vinu_ recently wrote a great article on this topic that might help with this:

1 vote
Tomislav Tobijas
Community Champion
March 9, 2025

Hi @Or Shaked ,

As per official docs, you'll have to use Forms submitted trigger to access these smart values:

Only smart values on forms that use the form submitted trigger can be accessed.

If you'd then use {{forms.last.reqbody}} it will pull the data you entered in that text field.

img.png

Cheers,
Tobi

Or Shaked March 9, 2025

Oh, thanks Tomislav, i missed that part.

So basically it means that i can retrieve forms info only right after the form has been sent? 

Tomislav Tobijas
Community Champion
March 9, 2025

So basically it means that i can retrieve forms info only right after the form has been sent? 

Yep.

You could also get values at any other point (not necessarily as soon as it's submitted), but that's a bit 'trickier' part as you need to get Form IDs via console or REST API first, as described here.

Like Bill Sheboy likes this

Suggest an answer

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

Atlassian Community Events