Ask a Question

How to create Jira issuetype= Test using API with JWT authorization

SOLVED
Akshata9
Occasional Contributor

How to create Jira issuetype= Test using API with JWT authorization

Here we are trying to create Jira issue-Test using Jira APIs but getting authorization error 403

 

POST: https://<<jira-url>>/rest/api/2/issue/

{
 "project": {
       "key": "testkey"
        },
        "summary": "Testissue",
        "description": "test via Api",
        "issuetype": {
            "name": "Test"
        }
      }

 

 

7 REPLIES 7
Akshata9
Occasional Contributor

Yes im using Basic Authorization PFB screenshot

Capture.PNG

 

 

 

nmrao
Champion Level 2

Could not read the screen clearly.

You want to check why it is showing OAuth in the response or check with service provider or respective forms for the coorect details to be used for the same.


Regards,
Rao.
Akshata9
Occasional Contributor

i would like to know why im getting below error

{
   "errorMessages" : [ ],
   "errors" : {
      "project" : "Anonymous users do not have permission to create issues in this project. Please try logging in first."
   }
}

nmrao
Champion Level 2

Do you know the steps involved to create the issue?
For example not sure though (you want to check the flow with someone if you are not clear), login first using user credentials, then use token / session from the login response and pass that information in the create issue.

If the steps are incorrect, have to fix that first.




Regards,
Rao.
nmrao
Champion Level 2

Any way error message is clearly saying the reason.


Regards,
Rao.

@Akshata9  : Were you able to loggin with used credential into JIRA?

 

Check logging into JIRA with the Credential you are using with SOAPUI.

 


Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓



Thanks and Regards,
Himanshu Tayal
cancel
Showing results for 
Search instead for 
Did you mean: