Create an issue, when creating an issue

Steve Sweales
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.
June 17, 2014

Is it possible to automatically create an issue (in project B) when I create an issue in project A?

3 answers

1 accepted

1 vote
Answer accepted
Danilo Conrad
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 17, 2014

Hi Steve,

This is not possible by default in JIRA, but you may try the plugin below:

Cheers,

Danilo

Bob Swift OSS (Bob Swift Atlassian Apps)
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.
June 17, 2014
0 votes
Vijay Khacharia
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.
June 17, 2014

I used the Script runner plugin for similar task. On create transition, I add a post-function that creates another issue.

Here is the sample code.

def projectName = "Dev Tools"       // Name of project you want to create the issue in
projectMgr = ComponentManager.getInstance().getProjectManager()

def wasIndexing = ImportUtils.indexIssues
ImportUtils.indexIssues = true

issueObject = issueFactory.getIssue()
issueObject.setProject(projectMgr.getProjectByName(projectName))
issueObject.setIssueTypeId("1") // normal subtask

// set subtask attributes
issueObject.setFixVersions(issue.getFixVersions())
issueObject.setAffectedVersions(issue.getAffectedVersions())
issueObject.setPriority(issue.getPriority())
issueObject.setSummary(issue.summary)
issueObject.setDescription(issue.getDescription())
issueObject.setReporter(issue.getReporter())
issueObject.setAssignee(issue.getAssignee())

// Create subtask
Map params = new HashMap();
params.put("issue", issueObject);
Issue StreamReq = issueManager.createIssueObject(authenticationContext.getUser().getName(), params)

0 votes
Nadir MEZIANI
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.
June 17, 2014

Hi,

You can do it using one of the scripting utilities plugin like script runner or jjupin, jss.. or develop you own plugin.
Look to this links its can help you and give you more ideas.
https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunnerhttps://marketplace.atlassian.com/plugins/com.quisapps.jira.jsshttps://marketplace.atlassian.com/plugins/com.keplerrominfo.jira.plugins.jjupin

Suggest an answer

Log in or Sign up to answer