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
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
Thanks a lot @Alexey Matveev Will try this out and update if it works for me!
It looks like you're new here. Sign in or register to get started.