Get timeSpent of last worklog in SmartField

Thomas Nistelberger November 17, 2017

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

0 votes
Answer accepted
Nick Menere
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 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]

Thomas Nistelberger November 20, 2017

Hi Nick,

 

thanks, that did the trick. Working great :)

 

Thank you,

 

Thomas.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events