Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Allow only reopen when issue is Done?

Olle Wessel-konsult June 7, 2018

Hi,

I have the option to reopen a closed issue, I have also added the function that the resolution will be set to None when this happens.

But I want reopen to be the only option to a closed issue, as of now all statuses are available, such as Todo, Implementing etc. All these statuses have the checkbox "Allow all statuses to transition to this" so it does make sense. But how do I limit the options from the Done status, without having to uncheck "Allow all..." in every other status and then manually set the allowed transitions?

In other words, the only status possible after an issue is set to Done, should be Reopened. 

5 answers

0 votes
Claudiu Lionte
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 27, 2018

Hi Olle,

You are using a simplified workflow, where intermediary statuses (like To Do or Implementing) have the option to allow the issue to transition into that status from any other status. This includes Done

In other words, there is no straightforward way to restrict the transition to Reopened other than manually creating a workflow that does not use the Allow all statuses to transition to this status option.

You could try with some hidden custom field: Have a post-function set a certain value to a field when the issue transitions to Done and have that value as a validator when the issue transitions to Reopened. However, it's rather clumsy and (in my opinion) not worth the hassle. 

Claudiu

Olle Wessel June 28, 2018

Thanks for the input Claudiu. I agree that it would not be worth the hassle.

0 votes
Moses Thomas
Community Champion
June 7, 2018

@Olle Wessel-konsultYou can design work - flow as you  want  just  remove  this transition  that allow  issue  in any status   to  transition to  re-open status and keep only one transition from done to   reopen  status this should  fix  it ,  for me  it dosen't  make sense when an issue is in implementation status and you transition issue to  re-open  status  for example.

 

Best!

Olle Wessel-konsult June 7, 2018

I am sorry Moses you have misunderstood what I am asking for. It is not about transition from Implementing to Reopened, it is about allowing only the transition from Done to Reopened, not Done to Implementing or other statuses.

0 votes
Olle Wessel-konsult June 7, 2018

I am sorry I don't think I explained the issue good enough. 

When the issue is in status Done, it should only be allowed to transition to Reopened. It should not be allowed to transition to Todo, Implementing and other statuses.

Jose M.
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 7, 2018

I would say, you need to handle the transitions to Done and/or to Reopen manually, not globally.

Moses Thomas
Community Champion
June 7, 2018

@Olle Wessel-konsultso  just  modify  workflow as  i  said,  make transition(re-open)  between  status Done  and Re-open   only.

i hope its clear.

 

Best!

Olle Wessel-konsult June 7, 2018

Unfortunately it is not clear. I already have the condition that Reopened is only allowed after Done. This does not prevent from moving the status from Done to (for example) Implementing. 

Can you elaborate your answer?

Moses Thomas
Community Champion
June 7, 2018

@Olle Wessel-konsultplease Make work flow screen  shot, i will  tell  you  what to  do.

Jose M.
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 7, 2018

A mix of global transition with manual transitions does not work very well, in my opionion. If your status "implementing" allows that all other statuses can go to it, I don't think you have a chance. Maybe the best is to remove the global transitions at all and to create and re-use transtions manually.

Olle Wessel-konsult June 7, 2018

Thank you @Jose M_, if that is the case I rather keep the global transitions and accept the fact that an issue can go directly from Done to any other status.

Maintaining too many rules, such as "an issue can only reach the status Code review from the status Implementing" makes the jira board too complicated, in my opinion.

Jose M.
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 7, 2018

@Olle Wessel-konsult, I would like to add: So far I prefer to create a transition and then re-use it. This is in my opinion an alternative and helps as well to reduce the effort.

0 votes
Jose M.
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 7, 2018

I would remove the global transition from the Reopen status. Only those statuses with a resolution should have the option to reopen an issue.

0 votes
Moses Thomas
Community Champion
June 7, 2018

@Olle Wessel-konsultRemove this transition  in your workflow, that allows all status to transition to  this status,  then  leave only one  transition re-open  that will  set ticket  to  closed

 

Best!

Suggest an answer

Log in or Sign up to answer