Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do you get the WorkLogID from the most recently created work log?

Wolf Elkan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 17, 2023

I'm writing an automation to log work to a given issue, and then send an email with a link to the work that has just been logged.

Right now, I have it set up with the "Log work" action, and smart values in all the fields.  However, I want to get the WorkLogID that will take me to the log I just created, so I can include it in the email.  For example, it might include a link to:

https://mydomain.atlassian.net/browse/{{issue.key}}?focusedWorklogId={{worklogid}}

How do I get this?

(Bonus kudos if you can tell me how to change the entity logging the work.  Right now, it's just the rule actor, so I can set it to Automation for Jira or myself.  I'd like to have the "author" of the work log entry, be determined by a Smart Value.  Is this possible?)

2 answers

1 vote
Béla Hegyesi November 25, 2024

Hi @Wolf Elkan
You can get it by using the {{worklog.id}} smart value, however, it's not in the official documentation of Atlassian.
For the bonus question, it's not possible, you can only set a rule with a predefined actor, or the "User who triggered the event", if you wanna log the work in the name of the triggering user.
If you'd like to use a nice app to display the worklogs, you can check out Timetracker.

1 vote
Kai Becker
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 17, 2023

Hi @Wolf Elkan ,

welcome to the community. Could you please post a screenshot of the rule, so that we can better understand the current setup?

Suggest an answer

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

Atlassian Community Events