Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a linked issue in JIRA software projects automatically for a particular issue type.

Sunitha Panicker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 12, 2018

I have seen articles on how to create linked issues for new JIRA service desk requests.

https://confluence.atlassian.com/servicedeskcloud/blog/2017/12/automatically-create-linked-issues-from-new-requests

I want to know if there is a way to automatically create a linked issue for an issue created in a JIRA software project.

eg: Everytime a JIRA issue type X is created, I want to automatically create a linked issue type Y in the same software project

1 answer

1 accepted

0 votes
Answer accepted
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.
November 12, 2018

Hello,

You would need an add-on for it. 

For example, you could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/1210749/power-custom-fields-premium?hosting=server&tab=overview

You could add a post function with a code like this:

string issue_priority;//Possible values: "Major", "Critical" etc.
string issue_description;
string[] issue_components;
string issue_security_level;
string[] custom_fields_mapping;

if (issueType == "Type X") {
issue_priority = "Critical";
issue_description = "Description of the issue";
issue_components = components; //an array containing all the components of the current project
issue_security_level = "Administrator";
custom_fields_mapping = "STDUP|fmanaila|STDGP|jira-users";
string k = createIssue(
"PROJECT",
"",
"Task",
"Summary of the sub task" ,
issue_priority,
issue_description,
issue_components,
currentDate() + "30d",
"1h 30m",
issue_security_level,
custom_fields_mapping
);
linkIssue(key, k, "Duplicate");
}

You can read more about post functions here:

https://confluence.cprime.io/display/JJUPIN/Customizing+workflows

Sunitha Panicker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 13, 2018

Thanks a lot @Alexey Matveev Will try this out and update if it works for me! 

Like bneuberg likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events