Bundling defects

Robin January 26, 2021

bundle a defect to a "mother" defect , only the status and fields in the "mother" defect needs to be updated. The "child" defects will be updated with the same content automatically.

defects are resolved, the bundling is still visible, but each defect needs to be verified separately

 

1 answer

1 vote
mogavenasan
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.
February 1, 2021

Hi @Robin,

You can use something like this or this - you will need Scriptrunner to achieve this on Jira Server. Unless you are running on the latest version of Jira which includes Automation for Jira app, then you can refer to this.

I hope that this helps.

Thanks,
Moga 

Max Lim _Adaptavist_
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.
February 1, 2021

I have tested that the latest version of Jira (8.15.0) doesn't includes Automation for Jira app.

The included app is Advanced Roadmaps for Jira.

As @mogavenasan said, this can be definitely achieved with ScriptRunner.

Taranjeet Singh
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 1, 2021

I think and as far as I know, Automation for Jira app is included as part of Jira DC edition, not Jira Server edition. It is also available as part of all plans of Jira Cloud.

mogavenasan
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.
February 1, 2021

Thanks guys, my bad! Since it's part of the Jira Cloud, I thought this is bundled with Jira Server as well. I can see the pricing on this app at the Marketplace. lol

Apologies!

Robin February 2, 2021

First of all, thank you for your answers.

but, I have never worked with Groovy before.

when I paste below code in code editor it shown two errors:

import com.opensymphony.workflow.WorkflowContext;
import com.atlassian.jira.config.SubTaskManager;
import com.atlassian.jira.workflow.WorkflowTransitionUtil;
import com.atlassian.jira.workflow.WorkflowTransitionUtilImpl;
import com.atlassian.jira.util.JiraUtils;
import com.atlassian.jira.issue.MutableIssue;
import com.atlassian.jira.component.ComponentAccessor

String currentUser = ((WorkflowContext) transientVars.get("context")).getCaller()
WorkflowTransitionUtil workflowTransitionUtil = (WorkflowTransitionUtil) JiraUtils.loadComponent(WorkflowTransitionUtilImpl.class)
MutableIssue parent = issue.getParentObject() as MutableIssue

String originalParentStatus = parent.getStatus().getSimpleStatus().getName()
def isDevBacklogStatus = originalParentStatus in ['Next Up Dev', 'Backlog Dev', 'Selected for Development']

if (isDevBacklogStatus) {
workflowTransitionUtil.setIssue(parent)
workflowTransitionUtil.setUserkey(currentUser)
workflowTransitionUtil.setAction(171)
if (workflowTransitionUtil.validate()) {
workflowTransitionUtil.progress()
}
}

 

String currentUser = ((WorkflowContext) transientVars.get("context")).getCaller()

error: the variable [transientVars] is undeclared

MutableIssue parent = issue.getParentObject() as MutableIssue

error: the variable [issue] is undeclared

 

Jira version is v8.5.4

 

@mogavenasan 

@Taranjeet Singh 

@Max Lim _Adaptavist_ 

 

Thanks a lot

mogavenasan
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.
February 2, 2021

Hi @Robin,

These are Static Type Checking errors, usually, the code would work. Can I know if you tested the code? For reference:

Suggest an answer

Log in or Sign up to answer