Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira API - No "Issue" tag/parameter in JSON

I'm trying to find a way to make JSON POST's for the Rest API, so I can create JIRA issues. After going to my url, following the tutorials I have found online, I'm having 404 errors. Below, the URL you see, does produce information. If I add "/issue" to the end, I get 404. In the URL below, "issue," isn't even there. There is issue type, but that won't help me create an issue. See my attached photo to see what I mean. Is there an access problem I'm having, restricting me from seeing the "issue" piece?apiproblem.PNG

https://hosturl/rest/api/2/project/14704

1 answer

0 votes
brbojorque Community Leader Dec 17, 2019

Hi @Chris ,

In order for you to create the issue you must send the request via a POST http verb.

You can use curl or even Postman tool in order to do this.

Accessing it via the browser will only request the GET http verb.

@brbojorque appreciate the info. I'm new to using cURL. I was using postman yesterday and getting the 404 error attempting to POST the "issue." Can you have a look at my code and let me know your thoughts?

curl \
-u username:password \
-X POST \
-D apiTest.json \
-H "Content-Type: application/json" \
https://myjiraurlgoeshere/rest/api/2/project/14704/issue/

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

122 views 1 2
Read article

Community Events

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

Events near you