How can I complete a field automatically when I link a issue to another?

MajoG June 27, 2013

Hi!

I can't search with JQL issues with linked issues, so I have another idea. I would like to check an issue's checkbox automatically when an user links it to another issue.

My main objective is to get with a query issues that are linked to another one. It would be better if I can get the issues that have a parent issue.

I also have checked the information about Listeners: https://confluence.atlassian.com/display/JIRA/Listeners .
But I have Jira On Demand and the version is 6.0-OD-15 and the documentacion requeries Jira 6.1 EAP. I don't know what EAP is and when Jira On Demand will be updated.

Thanks, Mage

1 answer

0 votes
Paul Greig
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 6, 2013

Hi Majobsas,

I'd like to make a suggestion on the first part of your query, while you cannot currently use JQL to find linked issues, there is an active feature request: https://jira.atlassian.com/browse/JRA-25640

Meanwhile, one alternative is to use the REST API if you were interested in creating a application to perform these queries on your behalf.

As an example:

curl -D- -u <username>:<password> -X GET -H "Content-Type: application/json" https://<instance-name>/rest/api/latest/issue/<issuekey>?fields=summary,issuelinks

Replacing the values within < > would generate a list of the linked issues for a specific issue

To further expand you could run a query on a project, as an example:

curl -D- -u &lt;user&gt;:&lt;password&gt; -X GET -H "Content-Type: application/json" https://&lt;instance-name&gt;/rest/api/latest/search?jql=project=&lt;projectkey&gt;&amp;fields=summary,issuelinks

Your application would be searching for the returned values for "issuelinks"

If you are interested there is some great resources available here for the REST API: https://docs.atlassian.com/jira/REST/latest/#id2474348

Cheers,

Paul

Suggest an answer

Log in or Sign up to answer