Tempo REST API ISSUE

Hi all, we have small plugin in our company for reports generation in needed format. We use tempo API to get worklogs but we have 3-4 JIRA.
When I build request to Tempo API:
with cred: 

beforeSend(xhr) {
xhr.setRequestHeader("Authorization", "Basic " + btoa(config.credentials.email + ":" + config.credentials.password));
}
jirahostUrl1 + '/rest/tempo-timesheets/3/worklogs?datafrom=someDate&dateTo=someDate'

First JIRA sent worklog response  for logged in user (credentials in request header), but second sent worklog response for ALL users.

If I make request like this:

jirahostUrl1 + '/rest/tempo-timesheets/3/worklogs?datafrom=someDate&dateTo=someDate&username=someUserName''

Second JIRA sent  worklog response for logged in user, but another JIRA sent response an empty array. 

What I do wrong here? Maybe we need change some JIRA settings/premissions? 

Thanks 

1 answer

I have the same problem.... 

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 Monday in Agility Beta

We've moved!

A note to all watchers that we've moved to a new community home... https://community.atlassian.com/t5/Agility/ct-p/agility Please update your notification subscriptions to keep across the ...

56 views 0 2
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