How to modify the way that JIRA uses to decide when to cross out an issue's link

Raúl Cuevas González October 5, 2015

Hello, 

I have an issue type whose workflow lets the users to re-open issues once they have been closed and solved.

At the moment of closing, the user sets field "Resolution" as "Solved" or "Unsolved". From then on, any link to that issue appears crossed out. But, if in that state, the user reopens the issue, for any reason, the field "Resolution" continues being filled, and so, any link to that issue continues being crossed out. But, this is not our desired behavior.

The question, therefore, is the next: Is there a way to modify the condition that JIRA uses to cross out the links to the issues? If there is, I will modify adding the condition "Issue's current state is Closed".

Thanks.

2 answers

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 5, 2015

Absolutely not.  The rule is simple (resolution is filled = strikeout), but the logic behind it is embedded in code all through the entire system.  You'd have to rewrite quite a significant swathe of the core code, and a lot of addons.

What you should do is simple - edit the workflow, adding a "set resolution to 'none'" post function on any transition that takes the issue out of a "closed" status into an "open" type one.  There's an example on the default JIRA workflow that is built in (and read only)

1 vote
Joe Pitt
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 5, 2015

You'd have to go in and modify base code. Bad idea. Any time an issue is reopened you should CLEAR the resolution field with a post function. If you do that the issue won't be crossed out any more. The history will show the past resolution.

Suggest an answer

Log in or Sign up to answer