Jelly how do i create EventDispatchOption for Issuemanager updateIssue

justin.taylor@ooba.co.za June 2, 2013

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
David Pinn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 2, 2013

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;

justin.taylor@ooba.co.za June 2, 2013

Perfect you are a king thank you!

Suggest an answer

Log in or Sign up to answer