1
0
Fork 0

create sub-task should use the new constant for the parent field

master
Bob Carroll 2014-05-26 16:30:53 -07:00
parent 63932f4cc3
commit fb5be13c64
1 changed files with 1 additions and 2 deletions

View File

@ -683,9 +683,8 @@ public class Issue extends Resource {
* @throws JiraException when the client fails to retrieve issue metadata
*/
public FluentCreate createSubtask() throws JiraException {
return Issue.create(restclient, getProject().getKey(), "Sub-task")
.field("parent", getKey());
.field(Field.PARENT, getKey());
}
private static JSONObject realGet(RestClient restclient, String key, Map<String, String> queryParams)