Create new project via rest api over https

Hi,

I'm pretty new beginner with Jira REST api.

I've managed to compose a simple .net program that fetches a list of projects and issues.

My current task is to create a bridge via our own propriety projects managements system and Jira, therefore i need to be able to query projects,create projects and sub projects and report hours and assigned resources.

Are all the activities I've described are supported by REST api?

If you have links and maybe some examples how to, it would be great smile

 

Kind regards,

Ofer S. Hai

 

7 answers

0 votes

Methods like create project are not exposed via REST API. See https://docs.atlassian.com/jira/REST/latest/ for the full list of supported methods.

Can i create issues and tasks via REST api ?

Can i assign an issue to a sprint ?

Yes. Assigning issues to Sprint needs JIRA Agile REST APIs. It is not public but you can figure it out from the calls using Firebug or Chrome developer tools and use them.

I found a method to create new project on the following page.

https://jira.atlassian.com/rpc/json-rpc/jirasoapservice-v2/createProject

Isn't Create Project method available now (or not implemented yet) ?

Are there any plans to add the ability to create a project to the API?

Its added in the latest release. See my comment below.

A sample of REST API to create project.

Create Project in Jira
===================
HTTP method: POST
https://<companyName>.atlassian.net/rest/api/2/project

User-Agent: Fiddler
Host: <companyName>.atlassian.net
Authorization: Basic YZNdaXNoMnVwYWToeqF5QHF1eXBtZW50pmlHOjIyY0gwRGJETW1hZGdJcnhCVH5NR7MJQg==
Content-Length: 176
Content-Type: application/json

Body
{"key": "FAPI",
"lead": "admin",
"name": "FromAPI",
"projectTemplateKey": "com.pyxis.greenhopper.jira:gh-simplified-kanban",
"projectTypeKey": "software"}

 

You need to have token to access REST API. You can get it from Jira itself.

Hope this helps!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

23,808 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you