Hello @Natnael Tamrat ,
Welcome to the Atlassian Community!
For the rest, all you have to do is to add an authorization header to your call built by following the instructions you can find in the "Supply basic auth headers" section of the Basic Auth for REST API documentation page for Jira Cloud:
Supply basic auth headers
You can construct and send basic auth headers. To do this you perform the following steps:
- Generate an API token for Jira using your Atlassian Account.
- Build a string of the form
- BASE64 encode the string.
echo -n firstname.lastname@example.org:api_token_string | base64
- Windows 7 and later:
$Text = ‘email@example.com:api_token_string’ $Bytes = [System.Text.Encoding]::UTF8.GetBytes($Text) $EncodedText = [Convert]::ToBase64String($Bytes) $EncodedText
- Supply an
Authorizationheader with content
Basicfollowed by the encoded string. For example, the string
ZnJlZDpmcmVkin base64, so you would make the request as follows:
curl -D- \ -X GET \ -H "Authorization: Basic ZnJlZDpmcmVk" \ -H "Content-Type: application/json" \ "https://your-domain.atlassian.net/rest/api/2/issue/QA-31"
Finally, for the future, please notice that this is not the best place to get help on development related questions. The right resources are listed in https://developer.atlassian.com/resources.
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