Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How to automate the upload of the time record in Jira?

Good afternoon,
I am trying to automate the registration of time in a project, in it we use the Actual Start and Actual End fields which register Days and Hours, the problem arises with the formula that I am using which in theory should work but it does not, it The first thing I do is the following: create a flow where it is executed when the Actual End field is updated, after that it must register the time.

So in the "When" flow I use the change of values ​​of a field and in the "Then" flow I use the record time component in the same setting as the Actual Start start date and in the time spent field I put the following expression

{{issue.ActualEnd.diff(issue.ActualStart).hours.abs}}h

 

and i get the following error

Error attempting to register work on an issue
Worklog must not be null., Invalid time duration entered. (timeLogged)

 Could you help me by indicating if it is possible to automate the registration of hours or what should I change in my expression to make it work?

1 answer

1 accepted

2 votes
Answer accepted

Well, after running many tests, I was able to find the error, which was that I was incorrectly entering the field names. If it's useful to anyone, I created an automation where hours are logged based on 2 standard Jira fields.

 

{{issue.Actual End.diff(issue.Actual Start).minutes.abs}}m

I also share the images of the workflow performed so that you can recreate it. The only thing is that, since my Jira is in Spanish, you should translate the images to understand them.
 Automatizacion.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events