I have seen articles on how to create linked issues for new JIRA service desk 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
Hello,
You would need an add-on for it.
For example, you could use the Power Scripts add-on:
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
Thanks a lot @Alexey Matveev Will try this out and update if it works for me!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.