Issue field "resolutiondate" is not supported for setting

Srinivas Patruni April 4, 2014

I had added a post function to clear resolved date(resolved) but i am getting the below error in the log file. There is one more funtion also existing on the workflow for clearing the Resolution field but we want to explicitly clear the Resolved date as we had seen for some reopened issues showing resolved date. we are using JIRA 6.1.6

2014-04-04 13:51:43,381 /secure/CommentAssignIssue.jspa [googlecode.jsu.util.WorkflowUtils] Issue field "resolutiondate" is not supported for setting.

2 answers

1 vote
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 4, 2014

Hi Srinivas,

please, add the following scripted post-function in order to purge Resolution Date :

import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.issue.Issue;
import com.atlassian.jira.issue.link.IssueLink;
import com.atlassian.jira.issue.IssueManager;
import com.atlassian.jira.issue.MutableIssue;
import com.atlassian.jira.event.type.EventDispatchOption;

MutableIssue issue = issue;
IssueManager issueManager = ComponentAccessor.getIssueManager();
issue.setResolutionDate(null);
issueManager.updateIssue(ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser(), issue, EventDispatchOption.DO_NOT_DISPATCH, false);

Hope this helps.

Regards,

Fabio

Srinivas Patruni April 7, 2014

Why was "resolutiondate" not supported for setting?

0 votes
Antonio Bosio February 9, 2017

Thanks @Fabio Racobaldo [Herzum], it works very fine also in JIRA 7.1.10

Regards,
Antonio

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events