Need JSON to remove a decimal 0 within a rule

Trevor Overstreet December 14, 2022

I created a rule to automate a summary update.

Issue is we have a custom numeric field and when populated in the summary we see a decimal 0.

{{issue.summary}} - {{issue.client}} - {{issue.clientID^[0-9]*$}}Screen Shot 2022-12-14 at 10.27.56 AM.pngScreen Shot 2022-12-14 at 10.29.01 AM.png

1 answer

1 accepted

0 votes
Answer accepted
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 14, 2022

Hi @Trevor Overstreet 

What is the type of your clientID field?  If it is a number you could try using the floor function:

{{issue.clientID.floor}}

 

Kind regards,
Bill

Trevor Overstreet December 14, 2022

It's a numeric field so I will give the above a shot. Thank you!

Trevor Overstreet December 14, 2022

That worked. Thank you!

Like Bill Sheboy likes this

Suggest an answer

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

Atlassian Community Events