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

This widget could not be displayed.

Create Project is indeed supported now by the JIRA REST API:

https://docs.atlassian.com/jira/REST/latest/#api/2/project-createProject

This widget could not be displayed.

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.

This widget could not be displayed.

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.

This widget could not be displayed.

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) ?

This widget could not be displayed.

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.

This widget could not be displayed.

You can create project using REST Api. Navigate to below URL.

https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-project-post

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

88 views 1 0
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