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.jpg Fails: 

Action details:

Edit issue

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

 

 

2 answers

1 accepted

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)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.13.4
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events