I can't find any documentation/sample code to create a sub-task. can somebody shed some light here?
I am trying to create a listener, which creates a group of sub-task once there is a same type of sub-task is created, I assume it is pretty much the same as creating an issue, but just could not find the property name of ParentIssue (ID).
thanks in advance.
Community moderators have prevented the ability to post new answers.
I use the followig in JEMH to setup a subtask. Is this what you needed?
Issue issueObject = ...new issue, set issueType as sub-task
Issue parentIssue=(Issue) ... getParent issue.
Project p=parentIssue.getProjectObject(); issueObject.setProject(p.getGenericValue()); issueObject.setParentObject(parentIssue); issueObject.setParentId(parentIssue.getId());
On a meta note - the 'preformatting' style isn't working well here in Answers. I've raised a bug report at ANSWERS-142 for this. We're also working on a proper code block option at ANSWERS-57.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Ben, Um sorry, its all in my head. I should write a book or something :) Checkuot the JEMH code, its a pretty good toolkit for doing most things with/to Jira issues.
@Jermey, thaks, I did spend a goood 30S looking for the 'enough with the rich editor just give me the markup' button, watching -57!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.