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?
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
thanks for the input ;)
I am going with scriptrunner; I will try to use the API described by following:
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.