Forums

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

Call Rest API

Dimitris Papaioannou September 15, 2020

So, we have Jira Software  to keep track of our software bugs. We also have an in-house software with a REST API that tracks files and does some monitoring of new files coming in etc. One of its jobs is to keep track of the duplicate files that are stored in different paths in the hard disks. What i want is to implement an app that is triggered when a user is uploading a file in jira. At that time a rest api call should ask our other software if this file has duplicates and if it does inform the user (maybe with an alert box) that duplicates exist (maybe also show the paths of these duplicates).  Can you give me some guidelines from where to start ? 

2 answers

0 votes
Daniel Ebers
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 11, 2020

Hi Dimitris,

while it is hard to understand until not seeing the whole picture (by means of a requirement, as well as current implementation & data) my best guess would be that you can achieve (at least parts) with Webhooks.

"an app that is triggered when a user is uploading a file in jira. At that time a rest api call should ask our other software".

Unfortunately, it is not possible to listen to an event that targets the attaching of a file there are more generic events like issue updated. Maybe this gets you started.

https://developer.atlassian.com/server/jira/platform/webhooks/

An alternativ of some kind would be to call the external API of your in-house software during a workflow transition.

All of this would need further inspection but the basic possibilities (and a good point to start looking at) are Webhooks and post functions in workflows.

Cheers,
Daniel

0 votes
Gonchik Tsymzhitov
Community Champion
September 15, 2020

Hm, what is the full use case ?

would you like to decrease disk usage ?

Dimitris Papaioannou September 15, 2020

Yes, it might be helpful to a general file control we are trying to have. 

Gonchik Tsymzhitov
Community Champion
September 16, 2020

Could you share what do you mean under file control, please?

Dimitris Papaioannou September 16, 2020

Unfortunately I cannot share any more information.

Gonchik Tsymzhitov
Community Champion
September 16, 2020

Maybe a use case?

It's so hard understand is this ok for post analysis or async or pre-analysis or only on-time ?

Suggest an answer

Log in or Sign up to answer