Jelly script before reset resolving issue in JIRA

I am trying to run a jelly script in JIRA to set the permission to null for all my problems. The following script runs without error and returns this:

<JiraJelly xmlns:jira='jelly:com.atlassian.jira.jelly.JiraTagLib' xmlns:log='jelly:log' xmlns:core='jelly:core' xmlns:jx='jelly:xml' xmlns:util='jelly:util'>org.ofbiz.core.entity.GenericValue.NULL_VALUEorg.ofbiz.core.entity.GenericValue.NULL_VALUEorg.ofbiz.core.entity.GenericValue.NULL_VALUE.... </JiraJelly>

      

Here is the script.

<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib" xmlns:util="jelly:util" xmlns:core="jelly:core" xmlns:jx="jelly:xml" xmlns:log="jelly:log">
        <jira:RunSearchRequest var="issues" />

        <core:forEach var="genericIssue" items="${issues}">
            <core:invokeStatic className="com.atlassian.jira.issue.IssueImpl" method="getIssueObject" var="issue">
                <core:arg type="org.ofbiz.core.entity.GenericValue" value="${genericIssue}"/>
            </core:invokeStatic>

            <core:invoke on="${issue}" method="setResolution">
                <core:arg type="org.ofbiz.core.entity.GenericValue">org.ofbiz.core.entity.GenericValue.NULL_VALUE</core:arg>
            </core:invoke>

        </core:forEach>
</JiraJelly>

      

Does anyone have any ideas why this is not working or any ideas on how I can set the permission to anything?

Thank!

+2


source to share


2 answers


Updating issues with jelly in JIRA is a little broken. The best example of how to make it work that I have seen is using the ActionDispatcher as shown in the docs page in Alastair King's comment .



+1


source


I know it can be done with Jelly runner, but I think it would be easier to do it using Jira remote API or Jira CLI . A more detailed example of Jira's remote API can be found here. If anyone wants me to post a working source code, feel free to ask.



0


source







All Articles