Get timeSpent of last worklog in SmartField

Hello,

 

Is it possible to get the timeSpent value of the last worklog in a smart field? (For using the value in an Email Action or for setting a custom field with it)

{{issue.worklog.worklogs.last}} unfortunately only returns the comment of the last worklog and not the whole worklog.

 

Kind Regards,

 

Thomas

1 answer

1 accepted

Accepted Answer
0 votes
Nick Menere Community Champion Nov 17, 2017

Hey Thomas,

 

Almost there. You need to specify the "timeSpent" property:

{{issue.worklog.worklogs.last.timeSpent}}

 

Hope that is what you were after.

 

Cheers,

Nick Menere [Code Barrel - Co-Founder]

Hi Nick,

 

thanks, that did the trick. Working great :)

 

Thank you,

 

Thomas.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Thursday in Marketplace Apps

You + one app + a desert island...

Hi all! My name is Miles and I work on the Marketplace team. We’re looking for better ways to recommend and suggest apps that are truly crowd favorites, so of course we wanted to poll the Community. ...

1,827 views 4 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you