Here is a code example
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.MutableIssue import com.atlassian.jira.issue.fields.CustomField CustomField customField = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Сложность") if(customField != null) issue.setAssignee(customField.getValue(issue))
There is not update issue funciton since there is special step for it into post function list.
Can you help me with this issue?
I got error message from log:
2016-03-15 22:15:57,585 http-bio-8443-exec-10547 ERROR jessy_li 1335x2042069x2 1748upc 10.1.75.160 /secure/WorkflowUIDispatcher.jspa [scriptrunner.jira.workflow.ScriptWorkflowFunction] Script function failed on issue: TCD-155, actionId: 11, file: <inline script>
groovy.lang.MissingMethodException: No signature of method: com.atlassian.jira.issue.IssueImpl.setAssignee() is applicable for argument types: (com.atlassian.jira.user.DelegatingApplicationUser) values: [jason_tong(jason_tonger)]
Possible solutions: setAssignee(com.atlassian.crowd.embedded.api.User), getAssignee(), setAssigneeId(java.lang.String), getAssigneeId()
Try this one:
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG