Forums

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

Tempo REST API - Worklogs - How to retrieve the latest worklog author.

Deleted user
September 9, 2021

I need to write an automation rule based on the user who logged the work. I have Tempo Timesheets enabled on my Jira software cloud.

I am calling the Tempo REST APIs https://api.tempo.io/core/3/worklogs/issue/{{issue.key}} which returns all work logs on this issue. 

I need the latest author from the response. So I thought I can get that information if I can call Jira REST APIs like https://<my Jira cloud  URL>/rest/api/2/user/accountId={{webResponse.body.results.author.first.accountId)}}

Then I realized the accountId is a list and I am not sure how to get only the latest worklog entry from the {{webResponse}} and the respective accountId to pass it to Jira REST API.

Is there a way to get the user who triggered the worklog from Tempo or Jira REST APIs?

 

Thanks

 

1 answer

1 accepted

0 votes
Answer accepted
Syauqi
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 16, 2018

Hi Philip,

Did you perhaps input the wikimarkup header "h1." in the comment section while on the new JIRA issue view? If so, the tag won't be rendered on the frontend automaticly as the new viewer doesn't recognise the format:

Screenshot 2018-10-17 at 9.03.52 AM.png

<p>‌h1. I have manually added this heading</p>
<h1><a name="Ihavemanuallyaddedthisheading"></a>I have manually added this heading</h1> 

Do let me know if this is not the case. Hope you can elaborate on the steps.

Cheers, Syauqi

Phil_Dimeski
Contributor
October 16, 2018

Yea this is the exact case. Is there a reason why the new view does not recognise the wiki format ? 

Cheers, Phil 

Syauqi
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 16, 2018

As mentioned here New Atlassian Editor, we'll eventually phase out the wiki markup on future editor in favour of universal markdown syntax.

Here's the example formating shortcuts that you can use for the new editor:

  • ## This is H2 style (we support H2–H5)
  • **bold** for bold
  • *italic* for italic
  • ``` for a code block
  • [this is link text](www.atlassian.com) for this is link text
  • * for bulleted lists (like this one (wink))
  • 1. for numbered lists

Hope this explains.

Cheers, Syauqi

Phil_Dimeski
Contributor
October 16, 2018

This explains it very well Syauqi thank you!

Syauqi
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 16, 2018

No worries Philip. Happy to help :) 

Phil_Dimeski
Contributor
October 18, 2018

Hey @Syauqi I just wanted to double check something. You mentioned that Jira will eventually deprecate  the "custom" wiki in favour of a universal markdown syntax.

My first question is will this change also apply to Jira server as well as cloud. 

Also is there a place to look out for updates on when this will happen along with other development updates? 

Cheers, Phil

Syauqi
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 18, 2018

Thanks for the question Philip, there haven't been any progress for the suggestion nor re-introducing archived markdown Jira labs plugin. If you are interested on the capability, please do keep an eye out and leave a feedback on this active thread for any changes and updates: Markdown for JIRA Add-On compatibility. Though, there's no guarentee that the feature will be implemented or any ETA that I could provide to you.

If you have any other questions, please let us know and we'll be happy to help.

Thanks again for your feedback!

Mark Frederick
Contributor
January 3, 2020

If wiki markup will not be supported, what happens to the almost 3,000 Jira issues my Org has created over 3 1/2 years using Wiki markup?  We refer back to them as a form of documentation, but it sounds like alot of formatting will end up getting scrambled. 

Suggest an answer

Log in or Sign up to answer