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 vote
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 vote

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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

754 views 2 19
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