Forums

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

API interface for a single customer

Michel Murabito May 13, 2020

Hi everyone,


Our Service Desk is configured to allow users to exclusively view (and interact with) their issues or their organization's issues.

A customer asks us to receive an API token in order to read/write issues (clearly keeping the same permissions), the token would serve to make their external system to interact with our service desk.

Is it possible to generate a server-> server token which allows this process?
Do you have any links, resources and/or advice?

Thanks everyone for the answers! :)

1 answer

0 votes
Roma Bubyakin _Wombats Corp_
Contributor
May 13, 2020

Hi Michel,

As I understand you are asking for API Tokens on server instance (if not, you can start from here API Tokens in cloud Jira).

Unfortunately, there is no ability to generate such tokens on Server / Data Center installations.

However, you can give a try to my plugin:

API Tokens for Jira

It supports Service Desk and keep the same permissions for users.

Would be happy to hear your feedback on it.

Regards, Roman

Michel Murabito May 14, 2020

Our instance is in the cloud and the need is for the service desk.

 

Are they supported?

Roma Bubyakin _Wombats Corp_
Contributor
May 14, 2020

In this case tokens management is easier and works out-of-the box.

So just follow this instruction

https://confluence.atlassian.com/cloud/api-tokens-938839638.html

 

Small introduction into these tokens: 

they are just a substitution of a normal password but for API and works only in pair with username.

That means, users, who would like to use them must have an account in id.atlassian.com and have appropriate permissions in your Jira SD.

The pair of username/token respect security settings of the Jira and keep the same permissions.

Michel Murabito May 18, 2020

It doesn't work.

Steps:

  • I registered a new user on id.atlassian
  • I added this new user to my service desk
  • I generated the token on this user.

Any api request returns 401.

Roman Bubiakin _Wombats Corp_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 18, 2020

So far it sounds good.

Please check if that user actually has an appropriate permission.

Login with login/pass of that user and normal UI login to the Jira and check if he can see (or do) what is needed.

 

If on this step everything would be good, please provide some code snippet how implemented that connection.

Michel Murabito May 18, 2020

Yes, from the interface of the Service Desk Portal (remember that I speak of Service Desk Customer) the user can see and create new issue.

 

I don't have snippets I just tried a curl call.

 

curl -D- -u my_email@domain.com:HERE_THE_TOKEN_FROM_ID_ATLASSIAN -X GET -H "Content-Type: application/json" https://my_domain.atlassian.net/rest/servicedeskapi/request/ISSUE-KEY

 


The method works if I replace user and token with the one registered in Jira Service Desk (and not only on the Customer Portal)

Roman Bubiakin _Wombats Corp_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 18, 2020

Hm... Seems in that Jira simply does not allow these actions for Customer Portal users.

I googled a bit and have no find anything helpful. Sorry

Hope that anybody else here will be able to answer you

Regards, Roman

Suggest an answer

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

Atlassian Community Events