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

Retrieve the date enter while logging work

Muhammad Moazzam Hassan May 8, 2024

Hi,

I need a little help, I need to retrieve the Date Started value when anyone logs the work on any issue using the Time Tracking field.

I need to retrieve via automation rule like we can access the time spent by using the smart value {{{worklog.timeSpentSeconds}}.

image.png

1 answer

0 votes
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 8, 2024

Hi @Muhammad Moazzam Hassan  You have to use this smartvalue : 

{{worklog.started}} to get worklog date. 

Muhammad Moazzam Hassan May 8, 2024

You are great, 

Even Atlassian Support unable to answer this easy question

Thank You.

Like # people like this
Muhammad Moazzam Hassan May 8, 2024

I have one more question, if you may answer.

Can we retrieve the old value of Time Spent and Date Started if someone Edit the worklog and change the timespent and Date Started?

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 8, 2024

@Muhammad Moazzam Hassan  Glad to hear I am able to help you!

I am not sure any smart value can retrieve old value for worklog. For other field we can get old value using changelog, but for worklog it won't work. You can use REST API to get worklog initially create date and current date.

https://abc.atlassian.net/rest/api/3/issue/{{issueId}}/worklog/{{worklogid}}

 

{worklog}}

Accesses information for a worklog entry that has just been logged against an issue.

Available properties

  • {{worklog.comment}}

  • {{worklog.started}}

  • {{worklog.timeSpentSeconds}}

  • {{worklog.timeSpent}}

  • {{worklog.visibility}} - available when the worklog is restricted

  • {{worklog.visibility.type}} - available when the worklog is restricted

  • {{worklog.visibility.value}} - available when the worklog is restricted

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--changelog--

 

 

Like # people like this
Muhammad Moazzam Hassan May 8, 2024

Thank You.

Like Vikrant Yadav likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events