Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira REST API oauth2 and create issue via postman

David Aslan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 19, 2023

I need to build a postman api call to jira using oauth2.0 but the docs and chat-gpt has gotten me confused.

In postman i go to the authorization tab and fill the following tabs:

In my body i have : 

{
    "fields": {
        "project": {
            "key""DV"
        },
        "summary""New task",
        "description": {
            "type""doc",
            "version"1,
            "content": [
                {
                    "type""paragraph",
                    "content": [
                        {
                            "type""text",
                            "text""This is a new task"
                        }
                    ]
                }
            ]
        },
        "issuetype": {
            "name""Task"
        }
    }
}

I do get to login but i keep running into 

"Hmm... We're having trouble logging you in.

We're having trouble logging you in. There seems to be an issue with your identity provider. Wait a few moments, then try again." 

But i also receive a cookie with the value: atlassian.xsrf.token=xxxxxxxxxxxxxxxMaybe secret numbersxxxxxxxxxxxxxx_lout 

Im not quite shure how to continue, the goal is to create an issue from postman and then replecate it via c#.

 

 

Some picture that might help:

Skärmbild 2023-04-20 143809.pngSkärmbild 2023-04-20 143636.pngSkärmbild 2023-04-20 143457.png

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events