How to create Jira issuetype= Test using API with JWT authorization
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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"
}
}
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please refer documentation, there couple of types:
https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-oauth-authentication-6291...
https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-basic-authentication-6291...
https://developer.atlassian.com/server/jira/platform/cookie-based-authentication/
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes im using Basic Authorization PFB screenshot
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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."
}
}
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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
