

The following createIssueLink() method requres the destination ticket id as a type "Long". The above line creates a new ticket, but return a .GenericValue LinkedIssue = issueManager.createIssue(authenticationContext.getUser(), issueObject) IssueLinkManager = ComponentManager.getInstance().getIssueLinkManager() I am trying to write the script in post function to create a new ticket and link back to current ticket instead of sub-task. Root cause: Traceback (most recent call last): File "d:\jira\data\jss\jython\workflow\kundenmanagement_subtasks.py", line 26, in subTask2 = issueManager.createIssue(authenticationContext.getUser(), issueObject) at .(DefaultIssueManager.java:413) at .(DefaultIssueManager.java:356) at (Unknown Source) at (DelegatingMethodAccessorImpl.java:25) at .invoke(Method.java:597) at .(ObjectProfiler.java:70) at .(SwitchingInvocationHandler.java:28) at $Prox圓0.createIssue(Unknown Source) at 0(Native Method) at (NativeMethodAccessorImpl.java:39) at (DelegatingMethodAccessorImpl.java:25) at .invoke(Method.java:597) : If you think it was sent incorrectly contact one of the administrators:

This message is automatically generated by JIRA. A description of why should be below.\r\n"īody = body + "Comment:\r\n" + comment + "\r\n"īody = body + "Comment:\r\nNo comment was entered\r\n" A description of why should be below.\r\n"īody = body + "\r\nThe developers have been unable to reproduce the error you describe.\r\n"īody = body + "\r\nThis issue has been rejected. A description of why should be below.\r\n"īody = body + "\r\nThis issue is a duplicate of another issue.\r\n"īody = body + "\r\nThis issue has been marked as incomplete. Subject = ' ' + status + ': (' + key + ') ' + summaryīody = body + "\r\nAccording to our records, your issue (" + key + ") has been resolved.\r\n\r\n"īody = body + "\r\nThis issue will not be fixed. # Verify that we have an email address in the text field Requestor = issue.getCustomFieldValue(customField) Import .fields.CustomFieldĬustomFieldManager = ComponentManager.getInstance().getCustomFieldManager()ĬustomField = customFieldManager.getCustomFieldObjectByName("Requestor") # Get Requestor custom field (text, not user picker)


Resolution = issue.getResolutionObject().nameĭescription = issue.getString("description")
