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

2 votes
Answer accepted

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 yesterday in United States

Atlassian acquires AgileCraft

         Good Day, Bad bad traffic, not sure why!!!! 1/2 hour commute took me 2 hours today 🤯 What helped me is that I kept browsing LinkedIn until...

49 views 4 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