Forums

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

Create a linked bug on transition

Vishal Kondabathini
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 14, 2018

Hello,

I have 4 standard bug types( Example: A,B,C,D) in a project.

Bug type A has its own work flow

Bug type B,C,D has their own work flow. 

  • Step1: User creates bug type A
  • Step2: If bug type B is relavent to the project, then Reviewer will create a bug type B/C/D by keeping bug type A as a parent/master bug 

I would like to keep bug type A as master bug if a bug type B, or C or D is created and then bug type A will have its own Workflow and then the rest of the bug types will have their own workflow.

Is there a way to create bug type B,C and D as linked bugs to bug A within the same project?

I want this to happen during a transition on bug type A.

Please suggest a way without using a plugin if possible. 

2 answers

1 vote
Tom Lister
Community Champion
November 14, 2018

Hi @Vishal Kondabathini

if if you want different bug issues to follow different workflow you should create two issue types in Jira and assign them to different workflows.

See 

https://confluence.atlassian.com/adminjiracloud/adding-editing-and-deleting-an-issue-type-844500747.html

You also have the option of creating the other bugs as sub tasks of A but they will be in a workflow that applies to all sub tasks which I suspect isn’t what you want

without a plugin you won’t be able to automatically link these issues and you would also need a way of reliably identifying bug A.

you will need to create the links manually as you create the other bugs

You can define the description of your link by defining your own. See

https://confluence.atlassian.com/adminjiraserver073/configuring-issue-linking-861253998.html

Vishal Kondabathini
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 14, 2018

Thanks @Tom Lister

Can we use any free scriptrunner plugin and achieve this?

There will be a max of only 10 users who whould be using this transition and its not worth it to go for a paid plugin. Any specific way to solve it?

0 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.
November 14, 2018

Hello,

You could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You could create a post function on the required transition 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;

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",
"",
"Sub-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

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira product discovery, jpd premium, product management, idea management, product discovery, jira premium, product planning, atlassian community, product development, roadmap planning, product prioritization, feature management

Introducing Jira Product Discovery Premium ✨

Jira Product Discovery Premium is now available! Get more visibility, control, and support to build products at scale.

Learn more
AUG Leaders

Atlassian Community Events