Forums

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

Tickets without open PR's

Magdalena Zhisheva
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.
January 19, 2022

Hi all, 

I am making a research on the following:

Stories can't be moved to 'Done' or 'Cancelled' if there is an open Pull Request. 

I recently found this and try to build an automation with some JQL but without success. The most strange thing is that if I put this as a Rule condition: 

project = XX AND issuetype = Story AND status in ("Cancelled", "Done") and NOT development[pullrequests].open > 0, the story appears on JQL search but the rule is giving me the following: 

"The following issues did not match the condition:
XX-489
This may be due to any of the following reasons:
  • the issue didn't match the specified JQL (most likely)
  • the chosen rule actor doesn't have permissions (or issue security level permissions) to view the issue
  • the issue was deleted or wasn't indexed by Jira yet (in rare circumstances)

We recommend using the 'Issue fields condition' for more consistent results."

Using Issue fields condition as its advised is not an option as the Development field is not in the list.

Can somebody share some thoughts, please?

Thanks all in advance!

 

EDIT: The JQL is working and the rule was a successful but it's not returning the issue to the previous status before it was moved to Done. 

1 answer

0 votes
Melo
Community Champion
January 19, 2022

Hi Magdalena,

"EDIT: The JQL is working and the rule was a successful but it's not returning the issue to the previous status before it was moved to Done. "

You should check if there is a backward transition between the statuses. e.g from Done to whatever it was before.

Cheers,

Melo

Magdalena Zhisheva
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.
February 8, 2022

Hi @Melo , 

Yes, I checked and still didn't get a solution. Do you have any advise here?

Suggest an answer

Log in or Sign up to answer