The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Update Original Estimate using Automatic rules

Anastasia Kirovskaya
January 12, 2022

Hi,

We have a number type custom field (10701) that represents days and would like the original estimate field to be updated when this custom field is edited.

I've tried using the 'Set value' operations, but I can't get they to work.

Please can anyone tell me if there is something wrong with the way I have structured the following scripts:

{{triggerissue.CustomField_10701}}

or

{{triggerissue.CustomField_10701}}d

or

{{issue.CustomField_10701}}d

or

{{issue.CustomField_10701}}

or

{ "fields": { "timetracking": { "originalEstimate": " {{triggerissue.CustomField_10701}}d"} } }

122.jpgFails: 

Action details:

Edit issue

Error editing issues
TEST-35 (Original Estimate is incorrect. (timetracking_originalestimate))
123.jpg

 

 

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Anastasia Kirovskaya
January 12, 2022

Easy)

124.jpg

Now it works perfectly)

0 votes
Alex Koxaras -Relational-
Community Champion
January 12, 2022

Hi @Anastasia Kirovskaya 

What kind of field is this? Is this a text? If yes then you have to convert it to a number and then use the smart value formula. I would use something like the following:

{{issue.fields.CustomField_10701.asNumber}}d

Try the above and let me know if that works.

Anastasia Kirovskaya
January 12, 2022

Hi @Alex Koxaras -Relational- 

Is this a Number Field

 

The checkbox "Allow rule trigger" helped me

 

Thanks)

DEPLOYMENT TYPE
SERVER
VERSION
8.13.4
TAGS
AUG Leaders

Atlassian Community Events