Jelly how do i create EventDispatchOption for Issuemanager updateIssue

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!

1 answer

1 accepted

This widget could not be displayed.

This is what you need:

&lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&gt;
&lt;JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib" xmlns:core="jelly:core" xmlns:log="jelly:log"&gt;

&lt;core:getStatic 
  className="com.atlassian.jira.event.type.EventDispatchOption" 
  field="DO_NOT_DISPATCH"
  var="dispatchOption" /&gt;

&lt;core:invoke on="${issueManager}" method="updateIssue"&gt;
  &lt;core:arg type="com.atlassian.crowd.embedded.api.User" value="${jira.user}" /&gt;
  &lt;core:arg type="com.atlassian.jira.issue.MutableIssue" value="${issue}" /&gt;
  &lt;core:arg type="com.atlassian.jira.event.type.EventDispatchOption" value="${dispatchOption}" /&gt;
  &lt;core:arg type="boolean" value="false" /&gt;
&lt;/core:invoke&gt;
&lt;/JiraJelly&gt;

Perfect you are a king thank you!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Thursday in United States

Local Atlassian Research Workshop opportunity on Sep. 28th

We're looking for participants for another workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sh...

44 views 0 0
View post

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you