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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is that possible to use "Bearer Authentication" with PAT in jira-rest-java-client ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, you can refer to this link.
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.