Where i can write a JAVA program in JIRA Edited

Hello All , 

 

I am a JIRA administrator . I want to to write a JAVA code using REST API in JIRA. Using JAVA code i have to develop / change some thing in my JIRA administration part. 

 i didnt get any option to write a code in JIRA Software . where i can write JAVA code  and how  it is connected to my JIRA ? 

 

Thank you.

 

 

2 answers

2 accepted

0 votes
Thomas Schlegel Community Champion Jun 12, 2017

Hi Vidhya,

you should read the tutorials and examples on calling Jira with the REST API here:

https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials

There is also a Jira Java REST Client you can look at: 

https://ecosystem.atlassian.net/wiki/display/JRJC/Home

Hello Thomas ,

Thank you so much . Now am trying to Create JIRA Sub-Tasks automatically when issue created .  

For this i am planning to write a code in JAVA . Here I  ididnt understood where to write JAVA program during the transition state . I used Scripting Suite for JIRA add-on , i think in this  add-on   Jython scripts only allowed ,it is not possible to write JAVA (am not sure ). So give me  some suggations to me. 

Is it possible to write a code in Eclipse for this task. 

 

Thank you.

Thomas Schlegel Community Champion Jun 16, 2017

Hi Vidhya,

I didn't write code for that yet. For creating subtask with a Jira workflow, we are using the "Workflow Tool Box Plugin". It has a function for creating subtasks on a workflow transition. 

This works well, but it is not for free.

0 votes

There's two things you might mean here

1.  You literally mean you want to write "code in JIRA".  This is possible for Server versions of JIRA, and is a good idea to do it in Java, because that's what JIRA is written in.  You write and deploy an add-on containing your code, and JIRA runs it internally.  (There's also the option of writing directly in the core of JIRA and recompiling it, but I never recommend doing that.  Add-ons are the way to go)

2.  You mean you want to write code that talks to JIRA.  For that, you can write in any languate you want as long as it can talk to JIRA over its REST interface.  Start at https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials

Edit - sorry, Thomas beat me to it!  I need to click refresh before posting!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,981 views 12 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot