cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
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"
        }
      }

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Leader

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

@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, and remember to give "kudos" Smiley Happy

Thanks and Regards,
Himanshu Tayal

View solution in original post

7 REPLIES 7
Highlighted
Community Hero

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

Highlighted
Occasional Contributor

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

Yes im using Basic Authorization PFB screenshot

Capture.PNG

 

 

 

Highlighted
Community Hero

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

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.
Highlighted
Occasional Contributor

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

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."
   }
}

Highlighted
Community Hero

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

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.
Highlighted
Community Hero

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

Any way error message is clearly saying the reason.


Regards,
Rao.
Highlighted
Community Leader

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

@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, and remember to give "kudos" Smiley Happy

Thanks and Regards,
Himanshu Tayal

View solution in original post