Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I would like a github EE user to be able to create/update a specific type of issue in JIRA...

Brian W. Bishop October 30, 2017

...from a commit message and via the creation of an 'issue' in git

 

Shall I write my own plugin? Only if it allows me to expose a custom Jira REST API endpoint that I can hit from a github webhook.

 

Is there some other Jira construct that allows me to create a custom REST API endpoint in Jira?

1 answer

1 accepted

1 vote
Answer accepted
Alexey Matveev
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.
October 30, 2017

Hello,

REST API is available in Jira. 

You can find available Jira REST API here:

https://docs.atlassian.com/jira/REST/server/

If you want to create issue you should use POST /rest/api/2/issue. If you want to update issue you should use PUT /rest/api/2/issue/{issueIdOrKey}

You can install Atlassian REST API browser plugin for making your life easier while palying with Jira REST API.

https://marketplace.atlassian.com/plugins/com.atlassian.labs.rest-api-browser/server/overview

Brian W. Bishop October 30, 2017

I know very well about the API thank you. But since I am not in control of the github webhook post, then I need to fabricate a REST API endpoint of my own design, that will consume the requests from the external system. And then yes, handle them by processing them into jira issue updates.

Alexey Matveev
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.
October 30, 2017

You can use Adaptivist Scriptrunner to develop a custom REST Endpoint. It will be less time consuming then developing a plugin.

Brian W. Bishop October 30, 2017

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events