Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to - bulk create and link issues

Rumceisz April 15, 2013

Hi All,

we have an urgent problem: one porject lead needs to create and link 100 issues from one project to another. How is it possible? Repeat: not moving but create and link.

Can you please advise?

Thanks,
Rumi

6 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
EddieW
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.
April 15, 2013

Sounds like you need a programtic solution. I would think using curl and the REST interface will be your quickest solution, trading off long-term reuasability.

# Export the existing issues to a csv/text file (using issue navitgator)
# with a simple shell script., loop through all issue in the file
## echo details from CSV into JSON format
## Post content to create new issue - http://docs.atlassian.com/jira/REST/latest/#id168761
## Create json with both issue keys, and type of link
## Using created issue ID, create link to former issue. http://docs.atlassian.com/jira/REST/latest/#id166728

The API links i sent include sample request payloads. Grab a developer with some decent shell/curl scripting knowleddge and they can do it < 1 hour.

1 vote
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.
April 15, 2013

JIRA Command Line Interface createIssue and linkIssue. Depending on what information drives the creation, you might be able to use runFromCsv or runFromSql to drive it. If so, then on the linkIssue you can use replacement variables to automatically get the previously created issue id - see How to use replacement variables

Rumceisz April 15, 2013

How about Jira XPorter at bulk move?

0 votes
Mark Biro February 8, 2017

Hi Rumceisz,

With ImpEx, you can easily create and link multiple issues from one project to another.

  • The first step is to export the issues to Excel (it's only one click with this plugin)
  • Then import it back to JIRA by simply copying and pasting (It's possible with this plugin)

To see a step-by-step guide for it, please read the documentation.

If you just want to have a quick look at it, see this short video.

If you like this approach, you can download ImpEx from the Marketplace. 

If you have any questions, feel free to let me know!

Best Regards, Mark

0 votes
m
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.
May 15, 2013

You could use Zapier hooks to do this without requiring any programming.

http://blogs.atlassian.com/2012/11/notify-customer-sms-service-desk-webhooks/

The general flow would be:

  1. Create a Catch hook that looks for issues updated with a specific phrase like COPY-ME.
  2. Create a POST hook that creates a new issue by copying the caught issue.
  3. Filter and Bulk update with a new COPY-ME comment the issues that you want copied in JIRA.
0 votes
Rumceisz April 15, 2013

My guess is to put a transition into the workflow with a Script Post-Functio. The script would create an issue in the proper project and clone the current issues' summary, description, etc.

The only problem that I am not acquinted with that scripting:(

0 votes
Mirek
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 15, 2013

Hi Rumceisz,

You can always do it programatically by using for example Jelly Script - Link Issue and Create Issue Tags

https://confluence.atlassian.com/display/JIRA/Jelly+Tags#JellyTags-jira:LinkIssue

https://confluence.atlassian.com/display/JIRA/Jelly+Tags#JellyTags-jira:CreateIssue

There is specific examplein the documentation

Create two issues and link them

&lt;JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib"&gt;
&lt;jira:CreateIssue project-key="HSP" assignee="-1" summary="Issue summary 1" reporter="admin" issueKeyVar="issuekey1"/&gt;
&lt;jira:CreateIssue project-key="NDT" assignee="-1" summary="Issue summary 2" reporter="admin" issueKeyVar="issuekey2"/&gt;
&lt;jira:LinkIssue key="${issuekey1}" linkKey="${issuekey2}" linkDesc="duplicates"/&gt;
&lt;/JiraJelly&gt;

I hope it helps

Best Regards,

Mirek

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events