Issue Details (XML | Word | Printable)

Key: JRA-6896
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Sebastian J
Votes: 75
Watchers: 50
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
JIRA

Add ability to create sub-task via soap

Created: 03/Jun/05 07:54 AM   Updated: 24/Nov/08 08:51 PM
Component/s: Remote API (SOAP & XML-RPC)
Affects Version/s: 3.2
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Java Archive File atlassian-jira-rpc-plugin-3.10.2-1-subtask.jar (127 kB)
2. File create_subtask_in_3.10.2.diff (9 kB)
3. File create_subtask_in_3.8.diff (6 kB)
4. Text File rpc_subtasks_patch.txt (8 kB)
5. File subtask.py (1 kB)

Issue Links:
Duplicate
 
Reference

Participants: amrit lalli, Anton Mazkovoi [Atlassian], Brett Adam, Derek MacKie, John Fisher, Mark Chaisson, Mark Derricutt, Matt Doar, Peter Brandström, Randy Lukashuk, Ray Oei [Furore], Sebastian J, Simon Taylor, Suman Das, Sylvain St-Germain, Uwe Voellger and Wayne Koepcke
Since last comment: 1 week, 2 days ago
Support reference count: 6
Labels:


 Description  « Hide
I would be interested in a method for creating SubTask Issues. Attempting to use createIssue fails saying invalid issue type. Sub-Tasks need to have 'parent' issue. A method could be just like createIssue except you would have to specify a parent issue key to setup a hierarchy. Something like this would be useful

createSubTask( token, Parent_issueKey, newSubTask )

(which could return a remoteIssue like createIssue does) It would have to check that the Parent_issueKey is not a sub-Task already (I don't think sub-sub-tasks is allowed). This method would be a useful feature.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Derek MacKie added a comment - 23/Feb/06 07:23 PM
We are trying to streamline some of our business processes through a simple soap client on top of Jira - however we absolutely need to have the ability to create sub tasks via the soap interface for this to work. Has this been implemented yet?

amrit lalli added a comment - 23/Feb/06 07:25 PM
I would really like this feature as well.

Anton Mazkovoi [Atlassian] added a comment - 24/Feb/06 03:57 AM
Sebastian,

We have not got around to this yet, due to the large number of feature request. As I am sure you are aware the source of the RPC plugin is avaialble so you can extend the plugin if needed.

We are hoping to address this in teh future.

Anton


Matt Doar added a comment - 11/Apr/07 08:31 AM
I've attached the patch that I used to add a createSubtask() method to the jira-development-kit--3.8/examples/rpc-jira-plugin files. The work by Andrey Polyakov for the Jimex plugin was very helpful, though this patch takes a different approach and doesn't modify the RemoteIssue class.

Hey, Atlassian, did you ever fill that open position for someone to work on the SOAP API?


Uwe Voellger added a comment - 27/Sep/07 02:31 AM
Another SOAP problem: please extend SOAP so issue creation supports also sub-issues. We need this while importing a lot of issues from current tracking systems.

Matt Doar added a comment - 27/Sep/07 10:36 AM
Uwe,

Do you import issues using the SOAP API? Did you write your own app to do this or use an existing CLI?

~Matt


Uwe Voellger added a comment - 28/Sep/07 02:10 AM
Hello,

yes, I try to import issues from our current tracking system via SOAP. Unfortunately there is no other way since Jelly also does not support all features we need.
In a perfect world, SOAP would support all features available in the UI. Currently, sub-task and link support is the most important weak point for me.


Simon Taylor added a comment - 25/Oct/07 03:33 PM
I too would like to be able to create subtasks via SOAP.

When you want to integrate with JIRA there a few key things you immediately need to be able to do:-

1) Create an issue
2) Create a subtask
3) Link issues together

Currently can only do 1).

Please please please make this more useful


John Fisher added a comment - 08/Nov/07 12:34 PM
We REALLY need this feature in our environment, where we are attempting to import 20,000+ issues from an existing infrastructure. When might this feature be added, either via SOAP or the Jelly script capability?

Peter Brandström added a comment - 06/Dec/07 04:52 AM - edited
I attach an updated diff for Jira 3.10 and a precompiled plugin with subtask support. Instructions for installing the plugin:

1) Copy atlassian-jira-rpc-plugin-3.10.2-1-subtask.jar to WEB-INF/lib
2) Restart Jira
3) Go to Administration, Plugins and check that there is a plugin called "RPC JIRA Plugin + subtask" installed.

This plugin seems to automatically replace the standard "RPC Jira Plugin", at least it did for me.

To create subtasks, see the attached Python script "subtask.py" for an example. Note that there is a new SOAP method createSubtask which accepts a third parameter which is the parent issue key. You cannot pass this information using the second parameter as you might think.

If you use this to bulk import issues, I suggest you remove this plugin atter the import and use the default RPC Jira Plugin supplied by Atlassian.


Mark Derricutt added a comment - 06/Dec/07 05:54 PM
Atlassian folk - please add this patch into the official plugin

Matt Doar added a comment - 06/Dec/07 06:34 PM
Interesting, that 3.8 patch appears to be based on a patch that I emailed someone else on Oct 30th! Anyway, I've attached my original patch for 3.8, which also includes a check that you don't create subtasks of subtasks accidentally. I would also like to see this functionality make it into JIRA, but I'm aware that Atlassian have been trying to hire someone to own the API code for a while now.

Brett Adam added a comment - 10/Dec/07 10:36 PM
Has anyone updated this patch for 3.11 ?

Wayne Koepcke added a comment - 13/Feb/08 04:03 PM - edited
I took the 3.10 diff and applied it to the 3.12 code and it worked. Thanks for the patch!

Matt Doar added a comment - 26/Feb/08 11:07 AM
You're welcome.

Atlassian - is any reason this can't get added to the product?

~Matt


Sylvain St-Germain added a comment - 26/Feb/08 11:43 AM
If work is to be performed on that level it would be interesting to also augment the SOAP API in order to allow it to return which task is the parent of a sub-task.

If the information I have is still valid this is not possible in 3.7.2 and in 3.11.


Mark Chaisson added a comment - 16/Apr/08 08:19 AM

Also for me, sub-task and link support using XMLRPC is the most important for me. My automation tool uses XMLRPC for some tasks, but then has to switch to using the REST (wget) interface for others. Both work well, but having to switch to the REST interface in the same tool is painful, including the REST discovery phase.

My initial import from another tracking tool also was not smooth because of this. It was a combination of about 6 manual steps, some with XMLRPC, generating temporary files and some with Jelly, etc. I had to do this about 8 times before I got it 100% correct.
-Mark


Suman Das added a comment - 23/May/08 06:55 AM
We used "atlassian-jira-rpc-plugin-3.10.2-1-subtask.jar" in a way that Peter told .And using this we
are able to insert the subtask. But while we are using this patch, the
following method is not working : "getIssueTypesForProject" . Do anybody have any idea regarding this ?

Ray Oei [Furore] added a comment - 03/Oct/08 04:28 AM
My vote is in.
This would be an important improvement for us. We use Jira in combination with an automated testtool. At the moment we put the results back in a comment but we would really like to add subtasks (e.g. testresults from a specific automated run) to the parent issue.
And when JRA-4446 would be resolved....

Randy Lukashuk added a comment - 24/Nov/08 08:51 PM
Please fix this. We need the ability to 1) determine an existing tasks parent task and 2) create a sub-task.