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

Can we calculate field in Web request body

Rita Saad YOUNES December 4, 2023

Hello, 

Is there a way to calculate the field in web request body for example {{variable}}+1.5 ?

 

1 answer

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.
December 5, 2023

Hi @Rita Saad YOUNES 

Are you trying to perform this calculation in an automation rule?  If so...

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected.  Those will provide context for the community to offer ideas.  Thanks!

Until we see those...

The source of the values for your calculation to use in the web request body will impact how to solve this:

Some things can be used directly, like a basic issue field.  For example, {{issue.Story points.plus(1.5)}}  Perhaps try that first.

Some other fields' smart values seem to need to be evaluated before use in a web request body (or advanced edit with JSON).  To do that, first use the Create Variable action to create the body message, for example named varMessageBody, and then use that in the Send Web Request action as {{varMessageBody}}

Kind regards,
Bill

Suggest an answer

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

Upcoming Jira Events