Hi
I am trying to update an issue using the issuemanager but I am not sure how to pass the EventDispatchOption, I do below but its coming through as null
<core:invoke on="${issueManager}" method="updateIssue">
<core:arg type="com.atlassian.crowd.embedded.api.User" value="${user}"/>
<core:arg type="com.atlassian.jira.issue.MutableIssue" value="${issueKey}"/>
<core:arg type="com.atlassian.jira.event.type.EventDispatchOption" value="${EventDispatchOption.DO_NOT_DISPATCH}"/>
<core:arg type="boolean" value="false"/>
</core:invoke>
Any help will be very much appreciated thank you!
This is what you need:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib" xmlns:core="jelly:core" xmlns:log="jelly:log">
<core:getStatic
className="com.atlassian.jira.event.type.EventDispatchOption"
field="DO_NOT_DISPATCH"
var="dispatchOption" />
<core:invoke on="${issueManager}" method="updateIssue">
<core:arg type="com.atlassian.crowd.embedded.api.User" value="${jira.user}" />
<core:arg type="com.atlassian.jira.issue.MutableIssue" value="${issue}" />
<core:arg type="com.atlassian.jira.event.type.EventDispatchOption" value="${dispatchOption}" />
<core:arg type="boolean" value="false" />
</core:invoke>
</JiraJelly>
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.