It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
TAGS
Community showcase
Published in Jira Align

Best Practices in Jira Align

Hello Jira Align customers! In order to better serve you on your journey with Jira Align, the Community team has worked with the Jira Align team to curate the content in this collection to better s...

68 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you