Forums

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

Common API to create JIRA ticket on both On premise and On Demand?

AaRu September 15, 2020

Hi Team,

I'm planning to create integration with JIRA both OP(On-Premise) and OD(On-Demand),

So I would like to know the common flow of API to create a ticket in JIRA (in both)

Previously before the /rest/api/2/issue/createmeta deprecation i used the same for both OP and OD 

So kindly suggest some better flow for this common integration

 

Regards,

AaRu

1 answer

1 accepted

0 votes
Answer accepted
Milan Chheda [INFOSYSTA]
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.
September 16, 2020
ServiceDesk Plus September 16, 2020

Yes we are also having similar Question but need common API for both OP and OD, 

But above mentioned API's cant be used in OD 

AaRu September 16, 2020

Yes i read that but on demand JIRA doesn't support the below API's  

 

rest/api/2/issue/createmeta/{projectIdOrKey}/issuetypes
rest/api/2/issue/createmeta/{projectIdOrKey}/issuetypes/{issueTypeId}

 

I m expecting the common API like "rest/api/2/issue/createmeta/ " which is used to be common for both OD and OP, but now its deprecated and will be removed later 9

Milan Chheda [INFOSYSTA]
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.
September 16, 2020

Based on my knowledge, not sure though, the APIs won't be common for Cloud and Server. Any specific reason you want them to be same?
Also, what's the requirement or objective behind creating an issue in both JIRA environments?

AaRu September 16, 2020

We developed integartion between JIRA and our application, Before deprecation of rest/api/2/issue/createmeta/ we have same API for both OP and OD , but now we are not having the same so need to know is there any common API 

Milan Chheda [INFOSYSTA]
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.
September 16, 2020

So version 2 is latest for server while version 3 is in beta for cloud. As of now, version 2 is still available for cloud and you sure can have common API until version 2 gets deprecated. 

But I would recommend, if possible, to separate the logic because version numbers not necessarily would be same and also there are certain differences between server and cloud. Hence, better to have separate implementation and handle them individually than impacting both.

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events