My goal is to check if several users of Jira have tracked their time.
We track time by Tempo plugin. I found so many ways how to connect to the API.
I found there resources:
And some others. I've git lost what to use and how to connect.
Hi @Michael
If this question has been tagged correctly, you're using Jira cloud? Then I would go with the first link that you gave, because it is for cloud and is also using the latest API, v3. This is the document that I use
The other links seem to be related to the server version
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I don't understand too what to put in Redirect URIs in the second case?
Slava.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Warren ,
As a backend API developer, trying to get access to Tempo sheets without any frontend whatsoever, I don't understand too what to put in the Redirect URI too. Can you assist what to put there in this case?
In the meantime, I'll try using access token from API Integration section, since it doesn't seem to require some redirects and so on.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you're looking at the Tempo documentation link above and trying to connect as an individual user, there is no need for a Redirect URI. You just use your own email address and the API token. Working through that process, you are never asked for a Redirect URI.
If that is not what you're doing, let me know exactly what it is that you're trying and where it asks for this URI.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Warren The second method using Oauth. While creating an app in tempo it asks for redirect url. what should we enter in the redirect url. To know more please check the attached pic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For anyone struggling to make the API work:
You actually have to pass the term "Bearer " in the request. I spent two hours passing my email id.
Also you SHOULD'NT encode the API_TOKEN. Code below FYR :
def TEMPO_URL = "https://api.tempo.io/core/3/worklogs/issue/CTI-1";
def TEMPO_TOKEN = "yHq0o232323Rr9sdsdsS61n1IufgfggTAEOOAj4";
String basicAuth = "Bearer " + TEMPO_TOKEN;
def connection = new URL(TEMPO_URL).openConnection() as HttpURLConnection;
connection.setRequestProperty( "Authorization", basicAuth );
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.