Forums

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

Field increment through smart value

Fadi Shahwan January 5, 2025

Hi, 

I created an automation role to increment field "Retarget no." +1 whenever the target date field is changed. I'm not sure what should be the smart value i need to add in "Retarget no."

any idea ? 

3 answers

1 accepted

4 votes
Answer accepted
Manoj Gangwar
Community Champion
January 5, 2025 edited

Hi @Fadi Shahwan, You can use the smart value {{#increment}}{{issue.customfield_xxxx}}{{/}} 

Duc Thang TRAN
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.
January 6, 2025

Hello @Manoj Gangwar ,

I learned something new today! ;)
Thank you for sharing; this is much better than a smart value of the mathematical type

Like • Manoj Gangwar likes this
Fadi Shahwan January 6, 2025

Thanks @Manoj Gangwar 

it is working fine {{#increment}}{{issue.customfield_xxxx}}{{/}} 

 

Like • Manoj Gangwar likes this
0 votes
Kumar_rajarapu
Contributor
January 5, 2025

Hi @Fadi Shahwan ,

 

Please try below, it may be helpful to you. 

Create a numeric custom field called "target date".

You'd need to set the Default Value to 0, and you probably want to make it "read-only" by only showing it on View screens.

create an Automation that is triggered whenever the "target date" field value changes.

then Edit the issue fields and have "target date" set to 

{{#=}}{{issue.target date}} + 1{{/}}

 

 

Regards,

Kumar

Fadi Shahwan January 6, 2025

Thanks Kumar

0 votes
Trudy Claspill
Community Champion
January 5, 2025

Hello @Fadi Shahwan 

Whenever asking for help with a rule it will enable us to help you more efficiently if you provide screen images that show your entire rule and images of the details of the steps where you need help.

Without that information my educated "guess" about what would work would come from this page

https://confluence.atlassian.com/automation/jira-smart-values-math-expressions-993924866.html

{{#=}}{{issue."Retarget no.".}} + 1{{/}}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events