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, jira product discovery, jpd premium, product management, idea management, product discovery, jira premium, product planning, atlassian community, product development, roadmap planning, product prioritization, feature management

Introducing Jira Product Discovery Premium ✨

Jira Product Discovery Premium is now available! Get more visibility, control, and support to build products at scale.

Learn more
AUG Leaders

Atlassian Community Events