Forums

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

Custom field set by worklog

Lenzsér Adrienn August 8, 2024

 

Hello!

I would like to ask for help, because I can't really manage to get the global automation to work well. I created two custom fields: Test Estimate, Test Remaining. The Test Estimate is filled in by the consultant when he creates the ticket, and then an automaton copies this value to the Test Remaining. The goal would be that when the ticket is transferred from the In Progress status to the Test, the time logged in the Test status is deducted from the number entered in the Test Remaining field. I'm here for now, but even if I log in, 0 is still entered in the logged time:

 

2024-08-08_09h51_25.png

2024-08-08_10h26_22.png

 

The point would be that only the hours logged in Test status are subtracted from the value of Test Remaining. If it is in a different status, do not run the automation.

 

Thanks for the help!

3 answers

0 votes
Lenzsér Adrienn August 14, 2024

Hi @Dick !

I solved the problem, this is the solution: {{#=}}{{ issue.fields.customfield_xxxxx }}-{{issue.worklog.last.timeSpentSeconds.divide(3600).round}}{{/}}

 

Thanks,

Adrienne

0 votes
Lenzsér Adrienn August 14, 2024

Dear @Dick !

Thanks for the help, I'll give it a try.

Thank you,
Adrienne

0 votes
Dick
Community Champion
August 8, 2024

Hi,

You need to tell Jira that it's a math expression by using

{{#=}}    math expression   {{/}}

Dick
Community Champion
August 8, 2024

More on math expressions by Atlassian: Here

Dick
Community Champion
August 8, 2024

and don't forget to make it hours by 

{{issue.timetracking.timeSpentSeconds.divide(3600).round}}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events