Forums

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

Jira automation - Modify new field estimated time based on a rule

NSEU DevOps March 26, 2025

Hello,

Jira Datacenter: 9.12.14

I am trying to work out (logically in my head) and through the smart values. If I can take the smartvalue {{issue.timetracking.originalEstimateSeconds)}} and then add time based on changes made in a ticket type.

Now I do know how to do this, but I've come accross a very simple problem that I can't rack my brain around.

I have created a custom field (Now this is a text field) called "Original Estimate Copied". This then takes the value of {{issue.timetracking.originalEstimateSeconds)}} and output whats expected (So for example if 80h is put into the Estimated field, it is reflected in "Original Estimate Copied" as the value.

However, if I want to add extra time onto this new value, It still treats the value as a string (So if I do {{issue.timetracking.originalEstimateSeconds)}}+80h) as a rule, then as expected. It treats this as a string and outputs the value in seconds and then +80h as a string. 

I guess I have two problems really.

1) What custom field type should I use to output this new value correctly.
2) How do I get the smart value to actually calculate time over and above the initial estimated value?

At the moment, my automation is quite simplistic as I am testing things out. Its just changing a custom field triggered by a manual trigger.

Thanks

2 answers

1 accepted

2 votes
Answer accepted
Vishal Biyani
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.
March 26, 2025

@NSEU DevOps 

You can check out this link on how to do math calculations in automation

https://confluence.atlassian.com/automation0902/jira-smart-values-math-expressions-1431247614.html

 

Basic syntax is: 

{{#=}}{{issue.Invoice Amount}} * 1.2{{/}}
0 votes
NSEU DevOps March 26, 2025

Thanks.

 

This helped a lot

Suggest an answer

Log in or Sign up to answer