JIRA
  1. JIRA
  2. JRA-6896

Add ability to create sub-task via soap

    Details

    • Support reference count:
      5

      Description

      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.

      1. atlassian-jira-rpc-plugin-3.10.2-1-subtask.jar
        127 kB
        Peter Brandström
      2. atlassian-jira-rpc-plugin-3.13.5-1.jar
        138 kB
        Mike Hu
      3. atlassian-jira-rpc-plugin-4.1.2-1.jar
        138 kB
        Attila Goz
      4. atlassian-jira-rpc-plugin-4.1.2-1.jar
        138 kB
        Attila Goz
      5. atlassian-jira-rpc-plugin-4.1.2-1.jar
        136 kB
        Viktor Rosenfeld
      6. create_subtask_in_3.10.2.diff
        9 kB
        Peter Brandström
      7. create_subtask_in_3.8.diff
        6 kB
        Matt Doar (ServiceRocket)
      8. extend_jira_soap_rpc_subtasks_jira4.pdf
        148 kB
        Marcel Bender
      9. extend_jira_soap_rpc_subtasks_jira4.zip
        9 kB
        Marcel Bender
      10. jira-xmlrpc.subtasks.4.1.2.patch.1.txt
        13 kB
        Viktor Rosenfeld
      11. rpc_subtasks_patch.txt
        8 kB
        Matt Doar (ServiceRocket)
      12. rpc-jira-plugin.fixed-for-4.1.2.zip
        742 kB
        Attila Goz
      13. subtask.py
        1 kB
        Peter Brandström

        Issue Links

          Activity

          Hide
          Mark Lassau [Atlassian] added a comment -

          "Awaiting Deployment" means the bug is fixed, but we have not yet released the version of JIRA that it is fixed in (v4.4 in this case).
          Once v4.4 is released the status will be changed to fixed.

          We don't have exact dates for the 4.4 release - but it will be "soon".
          We have already released a v4.4 release candidate: v4.4-rc1
          (see http://www.atlassian.com/software/jira/EAPDownloads.jspa for Early Access downloads)
          We plan to release v4.4 simultaneously for Behind the Firewall and Hosted customers.

          Show
          Mark Lassau [Atlassian] added a comment - "Awaiting Deployment" means the bug is fixed, but we have not yet released the version of JIRA that it is fixed in (v4.4 in this case). Once v4.4 is released the status will be changed to fixed. We don't have exact dates for the 4.4 release - but it will be "soon". We have already released a v4.4 release candidate: v4.4-rc1 (see http://www.atlassian.com/software/jira/EAPDownloads.jspa for Early Access downloads) We plan to release v4.4 simultaneously for Behind the Firewall and Hosted customers.
          Hide
          Rose Isabelle added a comment -

          4.4 seems to be out and yet this ticket's status still says Awaiting Deployment. Can someone confirmed that this will be fixed in 4.4?

          Show
          Rose Isabelle added a comment - 4.4 seems to be out and yet this ticket's status still says Awaiting Deployment. Can someone confirmed that this will be fixed in 4.4?
          Hide
          John Saterfiel added a comment -

          This issue was completed according to the latest soap api javadoc. The function seems to be named createIssueWithParent instead of createSubTask.

          http://docs.atlassian.com/rpc-jira-plugin/latest/com/atlassian/jira/rpc/soap/JiraSoapService.html#createIssueWithParent(java.lang.String, com.atlassian.jira.rpc.soap.beans.RemoteIssue, java.lang.String)

          Show
          John Saterfiel added a comment - This issue was completed according to the latest soap api javadoc. The function seems to be named createIssueWithParent instead of createSubTask. http://docs.atlassian.com/rpc-jira-plugin/latest/com/atlassian/jira/rpc/soap/JiraSoapService.html#createIssueWithParent(java.lang.String , com.atlassian.jira.rpc.soap.beans.RemoteIssue, java.lang.String)
          Hide
          Marcus MacWilliam added a comment -

          This does not appear to work from the command line. The following command line produces the following error:
          atlassian.sh jira --action createIssue --project TEST --type 'Gothic Authorisation' --summary 'Authorisation for gothlib matm2-devt' --priority Major --reporter marcusma --assignee marcusma --description 'Alternative matm2-devt: Issue TEST-12, parent version v1-77.'
          Picked up _JAVA_OPTIONS: -Xmx512M

          Remote error: Issue type 'Gothic Authorisation' is not valid.

          Yet the inquiry of an existing one created via website:
          atlassian.sh jira --action getIssue --issue TEST-13
          Picked up _JAVA_OPTIONS: -Xmx512M
          Warning: user is not an administrator. Custom fields cannot be validated. Use correct custom field ids!
          Data for issue: TEST-13 (16361)

          Issue key . . . . . . . . . . : TEST-13 (16361)
          Type . . . . . . . . . . . . : Gothic Authorisation (12)
          Status . . . . . . . . . . . : In Progress (3)
          Priority . . . . . . . . . . : Major (3)
          Assignee . . . . . . . . . . : marcusma
          Reporter . . . . . . . . . . : marcusma
          Created . . . . . . . . . . . : 29/09/11 18:00
          Updated . . . . . . . . . . . : 29/09/11 18:01
          Due date . . . . . . . . . . :
          Security level . . . . . . . :
          Summary . . . . . . . . . . . : Authorisation for gothlib matm1-devt
          Description . . . . . . . . . : Alternative matm1-devt: Issue TEST-12, parent version v1-77.
          Components . . . . . . . . . :
          Affects versions . . . . . . :
          Fix versions . . . . . . . . :
          Environment . . . . . . . . . :
          Resolution . . . . . . . . . :
          Votes . . . . . . . . . . . . : 0
          Security level . . . . . . . :

          Version information:
          atlassian.sh jira --action getServerInfo
          Picked up _JAVA_OPTIONS: -Xmx512M
          JIRA version: 4.4-studio-rc2, build: 650, time: 2011-09-29T19:03:35.049+0100, time zone: Europe/Dublin

          Show
          Marcus MacWilliam added a comment - This does not appear to work from the command line. The following command line produces the following error: atlassian.sh jira --action createIssue --project TEST --type 'Gothic Authorisation' --summary 'Authorisation for gothlib matm2-devt' --priority Major --reporter marcusma --assignee marcusma --description 'Alternative matm2-devt: Issue TEST-12, parent version v1-77.' Picked up _JAVA_OPTIONS: -Xmx512M Remote error: Issue type 'Gothic Authorisation' is not valid. Yet the inquiry of an existing one created via website: atlassian.sh jira --action getIssue --issue TEST-13 Picked up _JAVA_OPTIONS: -Xmx512M Warning: user is not an administrator. Custom fields cannot be validated. Use correct custom field ids! Data for issue: TEST-13 (16361) Issue key . . . . . . . . . . : TEST-13 (16361) Type . . . . . . . . . . . . : Gothic Authorisation (12) Status . . . . . . . . . . . : In Progress (3) Priority . . . . . . . . . . : Major (3) Assignee . . . . . . . . . . : marcusma Reporter . . . . . . . . . . : marcusma Created . . . . . . . . . . . : 29/09/11 18:00 Updated . . . . . . . . . . . : 29/09/11 18:01 Due date . . . . . . . . . . : Security level . . . . . . . : Summary . . . . . . . . . . . : Authorisation for gothlib matm1-devt Description . . . . . . . . . : Alternative matm1-devt: Issue TEST-12, parent version v1-77. Components . . . . . . . . . : Affects versions . . . . . . : Fix versions . . . . . . . . : Environment . . . . . . . . . : Resolution . . . . . . . . . : Votes . . . . . . . . . . . . : 0 Security level . . . . . . . : Version information: atlassian.sh jira --action getServerInfo Picked up _JAVA_OPTIONS: -Xmx512M JIRA version: 4.4-studio-rc2, build: 650, time: 2011-09-29T19:03:35.049+0100, time zone: Europe/Dublin
          Hide
          Bob Swift added a comment -

          This is the wrong place for commenting on a JIRA CLI issue - you should go to JIRA Command Line Interface. Briefly, use must specify --parent xxxxx in order for a subtask type to be valid on create.

          Show
          Bob Swift added a comment - This is the wrong place for commenting on a JIRA CLI issue - you should go to JIRA Command Line Interface . Briefly, use must specify --parent xxxxx in order for a subtask type to be valid on create.

            People

            • Assignee:
              Robert Smart [Atlassian]
              Reporter:
              Sebastian J
            • Votes:
              171 Vote for this issue
              Watchers:
              106 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: