views:

375

answers:

1

I am trying to run a jelly script in JIRA to set the resolution to null for all my issues. The following script runs without errors 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 any one have any idea why this isn't working or have any ideas on how I might set the resolution to nothing?

Thank you!!

A: 

Updating issues via jelly in JIRA is a bit broken. The best example of how to make it work that I've seen is by using ActionDispatcher as shown on the docs page in a comment by Alastair King.

~Matt

mdoar