| Name | Create and link |
|---|---|
| Version | 1.0.0 |
| Product Versions | 3.10+ |
| Author(s) | Matthew B. Doar, Consulting Toolsmiths |
| Homepage | http://www.pobox.com/~doar |
| Price | Free |
| License | BSD |
| JavaDocs | |
| IssueTracking | http://developer.atlassian.com/jira/browse/JCLP (this is where to submit bugs or feature requests) |
| Download latest JAR | https://svn.atlassian.com/svn/public/contrib/jira/create-and-link/releases/jira-create-and-link-1.0.0.jar |
| Download Source | svn co https://svn.atlassian.com/svn/public/contrib/jira/create-and-link |
| Browse Source | http://svn.atlassian.com/fisheye/browse/public/contrib/jira/create-and-link |
Description/Features
This plugin lets you add a new operation that will create an issue and then create a link back to the current issue.
The new issue can have the priority and other fields preset, and various fields including custom fields can be inherited from the current issue.
Usage
- Check the version to use and download the plugin JAR file from the release location.
- Also download the file createandlink.jsp from here and install it in the directory atlassian-jira/secure/views/plugins. You may have to create this directory if it doesn't already exist.
- Unpack the jar file and edit the atlassian-plugin.xml file to customize the issue types etc for your installation. This is the least documented part of the process.
- Pack the jar file back up with jar
- Copy the downloaded JAR file into the atlassian-jira/WEB-INF/lib directory in your JIRA installation.
- Restart Jira.
- Check that the expected link appears in the bottom left Operations area for an issue
Building and Developing
To make changes to the plugin, you need to download the source and compile it yourself.
- Download and unpack the appropriate Jira development kit
- Inside the unpacked development kit, create a subdirectory named myplugins or some such and change directory to it.
- Download the plugin source with the command svn co https://svn.atlassian.com/svn/public/contrib/jira/create-and-link
- Change directory to create-and-link
- Make sure that you have a Java compiler and Maven 1.x installed, as described elsewhere
- Type maven jar and the resulting plugin JAR file is in the target subdirectory.
Troubleshooting
It didn't work for me
Now what?
Increase the logging level.
Check that your configuration atlassian-plugin.xml allows the link to appear for each kind of issue
Known Issues
See http://developer.atlassian.com/jira/browse/JCLP

Comments (10)
Mar 07, 2008
Kacey Roberts says:
I am assuming that this page is a work in progress? Also if this plug-in is wh...I am assuming that this page is a work in progress?
Also if this plug-in is what I think it is, I am very excited.
Apr 09, 2008
Bill Bennett says:
Wow, we would be very interested in this ... if it is what it seems to be. I'll...Wow, we would be very interested in this ... if it is what it seems to be.
I'll keep a watch out for updates.
Thanks,
Bill
May 22, 2008
Vitek Urban says:
Wow... nice idea The default configuration (.xml) links the CreateAndLin...Wow... nice idea
The default configuration (.xml) links the CreateAndLink.jsp file but this is not in your instalation package... is it necessary to edit configuration (assuming to change CreateAndLink.jsp to another .jsp) or create my own .jsp or so ...?
And one more hint... It would be nice to better document the "least documented part of the process" because this is probably the most critical part of the process
Sep 23
Matt Doar says:
I've added a link to the file. It's in the source, but not in the release jarI've added a link to the file. It's in the source, but not in the release jar
Jul 09
Mathieu AGAR says:
Hi ! Nice job with this plugin ! But I pointed out a few things to change : ...Hi ! Nice job with this plugin !
But I pointed out a few things to change :
1. When creating a link, the new issue isn't child but parent of the previous one ! I solved it by replacing in your code :
issueLinkManager.createIssueLink( currentIssue.getId(),originalIssue.getId(), lt.getId(), null, getRemoteUser());
becomes
issueLinkManager.createIssueLink( originalIssue.getId(),currentIssue.getId(), lt.getId(), null, getRemoteUser());
(Quote from JIRA API : void createIssueLink(Long sourceIssueId, Long destinationIssueId,...,...,...) )
2. In the links definition (atlassian-plugin.xml), the ${issue.id} wasn't correctly interpreted, I had to replace it by $issue.id for it to work. I'm using Jira 3.12, do you think the problem comes from my configuration ?
Thanks for reading, and excuse my english as I am french
Aug 07
Adam Carbone says:
what is the possibility of building on this to allow this to be as a result of a...what is the possibility of building on this to allow this to be as a result of a work flow transition? I would be willing to help in the development effort if I didn't need to start from scratch.
I would see that this would need a couple of things.
Aug 18
Michael Stelzner says:
Hi, thanks for this plugin, it helps me a lot. But there is one thing: I'm usi...Hi,
thanks for this plugin, it helps me a lot.
But there is one thing: I'm using Jira 3.12 and I can't upload attachments on the create and link page?! The new issue is created and the linking is done, but the attachment is missing. Can someone reproduce this behavior?
Aug 19
Michael Stelzner says:
I've found it: add  ...I've found it:
add
<page:param name="multipart">true</page:param>
to your createandlink.jsp
Sep 23
Matt Doar says:
Oop, just found I wasn't getting email about comments here. I've fixed that, so ...Oop, just found I wasn't getting email about comments here. I've fixed that, so I should be able to be a bit more responsive.
Nov 19
Bettina Zucker says:
Hello Matt, I would like to set most of the fields of the new issue with the sa...Hello Matt,
I would like to set most of the fields of the new issue with the same value as the fields in the current issue.
You said above it is possible to inherit the field values (even for custom fields). How?
I could not find any example in the atlassian-plugin.xml!
Cheers
Bettina Zucker