Forums

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

Versioning via REST-Endpoint

Anto Samardzic May 7, 2020

Hey guys 
I need to create a custom REST-Endpoint:

Users (not admins!!!) should be able to manage (create, edit) versions in a project, since this is only possible for admins I need to specify an admin-user in the REST-Endpoint who acts like a middleman

what would be a good approach?

Do you have any ideas?

How can I specify the admin user?

1 answer

1 accepted

0 votes
Answer accepted
Kian Stack Mumo Systems
Community Champion
May 7, 2020

Anto, 

I think it might just be easier to purchase a plugin for that. https://marketplace.atlassian.com/apps/1214929/version-manager-for-jira?hosting=server&tab=pricing. This one appears to satisfy your needs and is fairly cheap. It looks like it comes with its own REST API's! I haven't used it personally, and I am not affiliated with the company that produces it, I just found it by performing a marketplace search.

 

 

If you are married to developing your own rest API's, there are a couple of ways one can specify custom end points.


One option would be to write a custom plugin from scratch which provides the end point users can hit. Documentation for that can be found here.

You could also look at a plugin such as Scriptrunner which takes care of some of the complexities for you (This is more expensive than the plugin recommended above). You could run the code which is executed when the end point is called as an admin user.

Another option would be to write a Springboot application which contains its own set of endpoints. When a user hits one of those, it would make a call to Jira as an admin user to fulfill their request.

Those are the options I can think of off the top of my head!

I hope this helps,

 

Kian

Anto Samardzic May 11, 2020

thanks for the input ;)

I am going with scriptrunner; I will try to use the API described by following:

https://docs.atlassian.com/software/jira/docs/api/REST/7.11.0/?_ga=2.55210795.1671597994.1531726353-1659643416.1506407535#api/2/version

I want create a REST Endpoint in my Jira, where a user (project admin) calls the already existing REST Endpoints in this manner https://community.atlassian.com/t5/Answers-Developer-Questions/How-do-I-create-version-using-jira-REST-API/qaq-p/540012

if you have any suggestions, feel free to write ;)

thanks for the help, community power engaged 

Anto Samardzic May 11, 2020

useful tool: (free)

https://www.postman.com/downloads/

I am new to REST and this interface for testing helps me a lot, maybe somebody will find usage for it too 

Suggest an answer

Log in or Sign up to answer