How to push a file generated from an external tool to my developed jira plugin?

Hello, 

I developed a jira plugin(in Java and JavaScript) using the sdk. I also developed a tool (*.exe in C#) which will generate a json file. Everytime when this json file generated from my tool, I want this json file to be immediately transfered to and received by my jira plugin. Is that possible How could it be done? What extra work should I do? From my tool or from the server side of my jira plugin?

If someone could give me some hints, I would be very appreciated. Thanks.

 

Best regards,

 

Dongmei

1 answer

0 vote

Well, it is going to be a push or pull.

You can write a JIRA plugin that monitors for changes and pull it when the json file is generated but this may not be desired as you have to keep polling at regular intervals.

A better option might be to use a JIRA REST API which can then be invoked by your tool as soon as the json file is generated. You might have to create a custom REST end point in JIRA, using the rest plugin module, if you can't use any of the existing APIs.

Hello Jobin,

Thank you very much for taking your time and answer my question.

My JIRA plugin already has a REST Endpoint Module. What I don't know is, how could I build up kind of connection or invoking, so that my external tool can push this json file to my JIRA plugin?

Do you mean I should define a push function in my external tool in C# and also define a get function in my JIRA plugin REST Endpoint module? Is that the right way? Thanks.

Best regards,

Dongmei Liu

Yes. Define a GET end point and then call it from your tool. That seems to be the most straightforward way.

Hello Jobin,

Thanks for your answer. I will try to do it like this, still not sure if it will work. Define a GET end point in JIRA plugin I know how to do it, but I just wonder how this post function in my external tool written in C# should be defined.

Will this post function in C# just a normal function or what else?

Do you mean the function in C# should call the GET end point of JIRA plugin?

> Do you mean the function in C# should call the GET end point of JIRA plugin?

Yes. I do not know your design but it will be something like that I guess.

Hello Jobin,

Thanks for your clarify. I will try to implement in this way and see if it works.

Best regards,

Dongmei Liu

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

121 views 4 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you