Can we create projects in JIRA using Rest API calls?

srinivasp
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 10, 2012

Can we create projects in JIRA using Rest API calls?

9 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 16, 2013

Most people do not realize, but katl-commons is a free plugin offering a REST interface to running scripts (also available SOAP). Plenty of options.

http://confluence.kepler-rominfo.com/display/SIL/Common+REST+Service

Sorin Sbarnea (Citrix)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 15, 2014

I wasn't able find any build in script that expeses a REST project creation call. I wanted to add this to Python JIRA API, but I cannot rely on such customizations. Also it has to run on on-demand too.

1 vote
RambanamP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 15, 2013

you can create your won REST api plugin and create project

chek the following document to develep REST API

https://developer.atlassian.com/display/DOCS/REST+Plugin+Module

0 votes
Cyrille Martin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 21, 2015

WIth JSON-RPC it is feasible

["", "TATA", "TATA", "", "", "admin", {}, {}, {}]

https://docs.atlassian.com/rpc-jira-plugin/latest/com/atlassian/jira/rpc/soap/JiraSoapService.html

But what will happen in JIRA 7.0 with the supression of all JSON-RPC method ? @atlassian will you migrate to the REST API all deprecated methods not yet implemented ?

Regards,

Cyrille

0 votes
Ben Liu July 16, 2013

I was told to use Stable API to create project, is it feasible? If yes, how could I get and use it? I mean, I would like to know API function list.

In addition, it seems that Stable API is used for Java programming instead of other programming language like C#; and it seems to be used for plugin development which is different from my requirement.

0 votes
Ben Liu July 15, 2013

Yes, I checked, latest REST API doesn't support project creation.

Thanks for you information.

0 votes
Ben Liu July 15, 2013

Thank you Rambanam.

I guess you suggested me to create my own REST API plugin. If so, I think additional effort will be introduced.

The requirement for me is very simple. We have a web platform which cooperates with different lifecycle management tools, JIRA is one of the tools. We just want to have the web platform cooperate with JIRA using JIRA REST APIs.

Any other suggestions? Thanks.

RambanamP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 15, 2013

yes you have to develop your won plugin, as @jobin said it is not yet available in jira REST Api

Norman Abramovitz
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 16, 2013

Why not just create a new web service on your Jira server that executes a scripting language and then have an url that runs Bob's JCLI. This is definitely simplier than creating a plugin.

0 votes
Ben Liu July 15, 2013

Bob, I am having the same question. As JCLI needs commercial license, we would not buy it and have to implement such functions by ourselves.

The problem is that JIRA SOAP API will be deprecated since JIRA 6.0, (https://developer.atlassian.com/display/JIRADEV/SOAP+and+XML-RPC+API+Deprecated+in+JIRA+6.0) while corresponding API like project creation is not supported by latest REST API (https://docs.atlassian.com/jira/REST/latest/), how should we developers chose now? We should not use SOAP, and REST doesn't support.

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 10, 2012

If you are just interested in automation capabilities regardless of technology, then you can use JIRA Command Line Interface. It uses a combination of SOAP, REST, and other APIs.

srinivasp
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 10, 2012

I am actually looking for creating projects from our internal web applications. Trying to integrate those applications with the ablity to extend their scope by adding this feature of creating projects. So i guess i can't use JIRA CLI utility and insted use only SOAP.

Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 13, 2012

Not sure why you think you are limited to SOAP, almost any code can use commands or REST APIs.

srinivasp
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 13, 2012

But we can't create a project using REST i believe. Could you please correct me if i am wrong?

Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 13, 2012

Correct. JCLI uses a combination of APIs and you could either use that or do something similar - its just more work :). I was talking about the general case not create project specifically. Most application integrations require many different actions.

anas bakhou April 30, 2015

Is there any possibility to create a project from a java program !! I am looking for creating a project in jira from my java prog !!

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 10, 2012

Not yet. See the available methods here: http://docs.atlassian.com/jira/REST/latest/

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events