Forums

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

Looking for the smart value for {approval.id}

Alejandro K_ Brown
Contributor
April 16, 2026

Hello and thank You kindly in advance.

Using a JSM automation that is passing JSON data to a webhook. In the automation, I have the following custom code:
{
"issueKey": "{{issue.key}}",
"summary": "{{issue.summary}}",
"requestType": "{{issue.Request Type}}",
"issueUrl": "{{issue.url}}",
"approvalId": "{{approval.id}}",
"approvers": "{{issue.Approvers.accountId}}"
}

When passed to the target schema, the outputs line up perfectly EXCEPT the approvalId data. Every other variable at the target is filled in correctly. Only the approvalId variable is NULL.

I've tried changing the target schema to look for type 'int' instead of 'string', but see that the webhook JSON is sending 'string' for that variable, so the 'string' seems correct.

I've tried changing the smart value in the JSM automation to {approval.id} / {approvalId} / {approval} . Nothing seems to get passed into the webhook, as if none of those are the correct smart value for JSM.
ex: 

"issueUrl""https://...1022",
"approvalId""",


ANY thoughts are appreciated. I couldn't find info on this specific {approval.id} smart value on the JSM smart value page, informative as it was.

Take care and be well!

2 answers

0 votes
Joseph Chung Yin
Community Champion
April 16, 2026

@Alejandro K_ Brown 

Have you already take a look at the following reference page - https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--approval--

Also, you can find out all the fields' smart value associated with your issue by following this reference page -

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Hope this helps..

Best, Joseph

Alejandro K_ Brown
Contributor
April 16, 2026

Hi Joseph!
I did check out those pages, which got me closer, but still missing the "approvalId" smart value.

In the target app that is looking for the updated webhook, it sees the following data in the webhook (redacted for security.)  We can see that every other variable in the webhook has correct data. Except for the "approvalId" spot, which is an empty string.
As if I might not have the smart value right in the 1st place.
This also verifies that the webhook data content-type is JSON (had to manually type that into the additional info of the JSM automation).

msedge_FbleY1XYPy.png

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 Champions.
April 16, 2026

Hi @Alejandro K_ Brown 

Without seeing all the details of your rule and audit log, I wonder: what is the trigger for your rule?  The {{approval}} smart value is only populated with the approval-related rule triggers:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--approval--

 

Kind regards,
Bill

Alejandro K_ Brown
Contributor
April 16, 2026

Hi Bill, I can share what the automation trigger looks like.

But even on that page You shared, it doesn't mention {approval.id} unless the Approval ID is one of these other smart values?

To clarify, when the ticket status is set to [APPROVAL PENDING], and those conditions are applied, POST that data in the webhook. The other variables are successfully filled in except "approvalId".

msedge_tpntIdLgSu.png

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 Champions.
April 16, 2026

Reviewing the documentation from that link, the two triggers which support the {{approval}} smart value are:

 

Additionally, the documentation does not show an id attribute, while it does show others.  Please note that not all attributes are in the documentation; often experimentation is required to find the others.

Where did you find {{approval.id}} documented?

 

 

Suggest an answer

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

Atlassian Community Events