Get rate and currency of a worklog via RESTful API Edited

Hi community,

I tried to get the rate of my JIRA worklogs with a python script. I have the Tempo Timesheet plugin with API for base, timesheets, accounts and teams. Everything is up to date. This is my prefered process:

1. Get worklogs

/rest/api/latest/worklogs?[params]

2. Get account key of worklog over the issue

/rest/api/latest/issue/[issue_key]

3. Get account data

/rest/tempo-accounts/1/account/key/[account_key]

4. Get member role

/rest/tempo-teams/2/team/1/member

(loop beans and search for member of the worklog)

5. Now I have the account key and the member role id. Which API call helps me to get the related rate and currency?

In the docs is written, that the call

/rest/tempo-accounts/1/account/key/[account_key]

should response the ratetable id:

https://tempo.io/doc/accounts/api/rest/latest/#1463521625

 

With this information, I could extract everything from

/rest/tempo-accounts/1/ratetable/global/

In my case, this doens't work. There is no ratetable entry in the account response. Could this be a permission issue? Does anyone of you know a smarter way to get the rate and currency of a worklog?

Thank you,
Niklas

0 answers

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

828 views 2 9
Read article

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