Jira API and groovy documentation

srishti singh March 30, 2018

I am new to Jira API and groovy. I am doing the automation of JIRA using script runner in groovy language. I want to have some knowledge of the JIRA API functions so that i can code using them. Please share some link or any document to help me from the beginning with JIRA API functions description.

2 answers

2 votes
Alexey Matveev
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.
March 30, 2018

90% of sciripts begins with the ComponentAccessor class.

You can find API about the class here:

https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/component/ComponentAccessor.html

You need to import the class first in your script:

import com.atlassian.jira.component.ComponentAccessor

 Then you need to define, what you mean. You can get all kind of managers ((IssueManager, ProjectManager, JiraAuthenicationContext) and so on) through the class  and then use the methods of managers to solve your requirements.

srishti singh April 4, 2018

Thank you so much..

0 votes
Mentorship4U July 9, 2020

Hi @srishti singh ,

You can find interesting Groovy use cases on my new blog, where I will be sharing examples of Groovy usage in real-life applications.

I encourage you to have a look at it and sign up for the newsletter, there will be more interesting stuff there.

Cheers!

vivek July 6, 2021

@Mentorship4U  Your link doesnt work.please help me with the correct link

Mentorship4U July 14, 2021

Hi, the link is:
https://www.mentorship4u.com/

Can you send a screenshot showing what you see when you click it? (it works on my end).

Suggest an answer

Log in or Sign up to answer