Autoomatically Edit a numerical field with a % of time of the original estimate

Houssein Barkallah
Contributor
October 18, 2022

Hello community,

 

I'm trying to automate a field with a % of time set in the original estimate.

I created a rule that selects the % according to the value of a custom field (X) and i'm trying to change the put the value of that % to the original estimate and feed the result to a custom field (Y)

Capture d’écran 2022-10-18 174751.png

1 answer

1 accepted

2 votes
Answer accepted
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.
October 18, 2022

Hello @Houssein Barkallah 

Can you tell us what problem you are having with this rule? What help do you need?

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.
October 18, 2022

Hi @Houssein Barkallah 

Adding to Trudy's answer: please take a look at the examples of the math functions/features for automation rules.  I believe you are trying to apply a percentage as an operation when you could just multiple the value instead:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/

Kind regards,
Bill

Houssein Barkallah
Contributor
October 19, 2022

Thank you for the replies:

I'm trying to provide my team with a secondary estimation.

  •  [System] Original estimate will remain untouched.
  • Custom field (Y) will have the original estimate value + a % that depends on the value of the custom field (X) 
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.
October 19, 2022

So if I understand correctly, looking at the first branch of your rule where the field HLE = "HLE LEVEL 0" then you want to set "HLE wCont" to 

Original Estimate + 40% of Original Estimate

In that case the math would be

HLE wCont = 1.4 * Original Estimate

...and the proper syntax to get that in the automation would be like the first example on the page @Bill Sheboy referenced.

{{#=}}{{issue.Original Estimate}} * 1.4{{/}}

Note that Original Estimate is stored as seconds. What type of field is "HLE wCont"? You may need to also apply some conversion in your math to get the number that you want. 

Houssein Barkallah
Contributor
October 20, 2022

Thank you Trudy,

This works as you mentioned.

The HLE wCount is a number field that now stores the number of seconds.

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.
October 20, 2022

Glad I could help.

If your problem has been solved and your question answer please mark the response as Answer Accepted to help other community members find the posts that have working solutions.

Suggest an answer

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

Atlassian Community Events