Access forms smartvalues data

Mauricio Heberle
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 14, 2024

Hi everyone,

 

I'm following the documentation of this newly released feature, but I'm not being able to retrieve the data.


Forms uuid according to 

https://developer.atlassian.com/cloud/forms/rest/api-group-forms-on-project/#api-project-projectidorkey-form-get

 

Captura de Tela 2024-11-14 às 11.12.32.png


Forms fields:

Captura de Tela 2024-11-14 às 11.13.20.png

 

In my automation rules, I tested the following syntaxes with no success:

Using manual trigger

{{issue.forms.0228c499-61f5-4cc3-959a-2253966f4792}}

Log Output :

f3e15d5b-efa2-4835-812f-96f728e1b8c5

 

---

Using forms submitted trigger

{{forms}}

Log Output:

 

f3e15d5b-efa2-4835-812f-96f728e1b8c5
Am I missing something?

2 answers

1 accepted

1 vote
Answer accepted
Julian Governale
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 14, 2024

If JSM, you will need to set a field key value first in the form for each field and then use the smart values to retrieve the data. The smart value you are using is just to identify the form UUID, but won't export the data associated with it from my understanding. 

field key.png
---
form-log.png

---
form-field.png

----
log-output.png

 

Mauricio Heberle
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 16, 2024

Actually I found out that my problem was the trigger.

I was using "Froms trigger" by opening an already submitted form for customer editing and closing it again, which causes the automation rule to trigger. The rule is trigged normally, but nothing happens, then I created a brand new issue and it worked perfectly. 

Thanks!

 

Like Bill Sheboy likes this
0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 14, 2024

Hi @Mauricio Heberle 

Are you using a form in Jira Service Management?  That new form's smart value only applies for those types of projects / forms.

Although forms have recently been added for Jira Software Projects, I have seen posts from Atlassian team members that the smart values do not work for those forms yet.

Kind regards,
Bill

Mauricio Heberle
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 15, 2024

Hi @Bill Sheboy Yes, it's being used in JSM.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events