Forums

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

How do I install a plugin via the UPM REST API?

Yiwei Gao June 20, 2018

Wanted to see if there were any updates to this topic in June of 2018.

I found this link that gives some instructions on how to install a plugin via the UPM API, and had a question (for context, I'm trying to see if I can install a custom Jira plugin):

After obtaining the UPM token, the instructions say to make a POST request, where the "pluginUri" property is set to "the hosted location of your descriptor file." What are the limitations to this pluginUri property? Does it have to be on the same host machine as the running Jira instance? Or can the URI point to a separate machine (ie, our Artifactory instance, or a Github repo)?

 

2 answers

0 votes
Deleted user September 10, 2018

For any people who find this question in the future: the "pluginUri" parameter should point to a URL/location that responds with the plugin .jar to GET requests.

This URL is passed into the UPM plugin for it to download and install. 

See https://github.com/JCVI-VIRIFX/SampleTracking/tree/master/JiraPlugins, for I used this to try and reverse-engineer the API internals.

0 votes
Gonchik Tsymzhitov
Community Champion
September 8, 2018

Hi! 

Yiwei, let's use the method

https://github.com/AstroMatt/atlassian-python-api/blob/master/atlassian/jira.py#L329

 

Also, you can install throw pip our library. 

 

Cheers,

Gonchik Tsymzhitov

Deleted user September 10, 2018

Hey @Gonchik Tsymzhitov, thanks for linking that.

I actually ended up writing my own wrapper around the UPM API after playing around with it and realizing how to use it, but the script you linked is super handy as a reference.

Suggest an answer

Log in or Sign up to answer