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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 5, 2025

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 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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