I followed the tutorial to get the access token, when i try with the command with Java it's working pretty well as soon as i want to check if the access token is working with a simple CURL command or in REST CLIENT, it always returns me not authenticated
Can you share details of curl command you are using?
Here is sample that you can use to verify if things are working.
curl --request GET \
--url 'https://<SITE_NAME>.atlassian.net/rest/api/3/issue/<ISSUE_KEY>' \
--user '<EMAIL>:<API_TOKEN>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Please replace, <SITE_NAME>, <ISSUE_KEY>, <EMAIL>, <API_TOKEN> with appropriate values.
I followed this tutorial https://developer.atlassian.com/cloud/jira/service-desk/jira-rest-api-oauth-authentication/ to generate an access_token, it's working pretty well, i can perform my call with
java -jar OAuthTutorialClient-1.0.jar request https://jiratest.jira.net/rest/api/2/user?username=me\
but when i try with curl or postman
I always get : Authenticated_Failed.
@taiebafYou are mistaking oAuth Token with API Access Token. They are two different things.
Jira cloud provide two ways to login for API,
For CURL and Postman you need to basic authentication. Here are links,
Using Basic-authentication - https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-basic-authentication/
Generating API token for basic-authentication - https://confluence.atlassian.com/cloud/api-tokens-938839638.html
Please follow these two guides, and get back. Hopefully your issue will be resolved.
I am adding one new issue related to access request.
Once the request is been raised.
1. user Line manger will approve.
Now i want to add one more approve.
I am adding two fields
Filed Name: Type
System Name: Select List (single choice)
Owner Name: Select List (single choice)
Now i want one the system name is selected the owner name must display automatically, also it should go to same owner for approval.
Can anyone assist?
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events