Forums

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

automation for Jira transition parent

claudio_cherchi May 14, 2020

Hi everyone. I have some questions about Automation in Jira Cloud.

I successfully automatized the transition of the parent(Story) to Done when all the children (sub-tasks) are Done or Abandoned. What I'm expecting is the same behaviour that I can have when I move manually the story to Done:

  • A screen, defined in the workflow, shows-up
  • I can select ok or cancel:
    • OK-story goes to Done
    • Cancel-story doesn't transition to Done

So, when the automation triggers this transition I can see the Screen, I can press cancel but the transition to Done is done anyway, even if I press cancel.

Am I interpreting it wrong?

another thing is, even if I delre or disable the rule, the rule continues to be on. I do not know if this is a bug.

Can someone help me?

Thank you in advance

Cheers

 

1 answer

1 accepted

0 votes
Answer accepted
John Funk
Community Champion
May 14, 2020

Hi Claudio,

Why is there a screen showing up when you click the Transition to Done? 

I don't know why the Cancel doesn't actually cancel the Transition, but it doesn't.

So what we have done is to create a custom field of radio type with just simple Yes or No value. The field would actually same something like, Do you really want to move this to Done?

Then we put a Validator on the transition to make sure the value of the field is Yes. If not, it will not let you transition. Then you could click the Cancel. 

claudio_cherchi May 15, 2020

Hi John,

thank you for your answer. The screen is there because it was required by the team: they wanted to be notified when a story is going to be closed.

As you also pointed out, the "cancel" doesn't work. In our workflow this last step is important and to be honest, I think that automation has still some issues.  For example, a manual transition or an automated transition should have the same behaviour and they are are not having the same behaviour. The solution is to remove the automation rule.

To be precise is not the Screen that doesn't work, it is this window/screen that the automation shows

Annotation 2020-05-15 101908.png

If I press this cancel the transition is anyway performed. The subsequent Screen, in case I press Update here, has no effect at all. So both this cancel and the Screen cancel do not work.

Thank you.

Cheers

John Funk
Community Champion
May 15, 2020

Can you share a screenshot of your rule? 

What is the first step in the rule? What causes it to fire?

claudio_cherchi May 15, 2020

Hi John, sure. Here it is.

Thank you John.

Annotation 2020-05-15 101908.png

John Funk
Community Champion
May 15, 2020

I don't think the screen is coming from Automation for Jira. Your rule is to fire when the Sub-task is marked Done. But the screen is getting in the way of the Automation finishing which says to make the Parent Done. If you are doing that through Automation, you shouldn't be asking where the parent should go - the Automation is already determining that. 

I would get rid of the screen. 

claudio_cherchi May 15, 2020

Hi John. I do not know if something has been changed but I'm using the automation since the first week. I mean since Automation was introduced officially as part of Jira.

When the project is new, and the workflow with my Screen is there (transition to Done), and this automation is not there, I have no other screens. When I insert the automation rule, activating it, I have the screen I showed you in the previous post. So, it is not part of the workflow screen but the automation does it.

it is weird, I know but this is what is happening. It is anyway, Jira Cloud.

Thank you again John.

John Funk
Community Champion
May 15, 2020

I would change the If: Sub-tasks match status = "Done" OR status = "Abandoned" to just say If: Sub-tasks match status = "Done"  as a test and see if the screen shows up. 

claudio_cherchi May 15, 2020

Ok I'll do it.

Thank you. :-)

claudio_cherchi May 15, 2020

Hi John. It doesn't change.

Unfortunately, it doesn't work.

John Funk
Community Champion
May 15, 2020

Does it still give you the pop-up screen? With those same options?

claudio_cherchi May 15, 2020

Yes, because the last column has two possible states. Anyway, I removed the abandoned state and the screen is still there showing only one option.

John Funk
Community Champion
May 15, 2020

I created a test rule that looks exactly like yours and it worked perfectly with no pop-up screen. 

I would suggest you check the transition to Done in your workflow to see if there is something there that is linked to a transition screen or there are other conditions on the transition. 

claudio_cherchi May 15, 2020

HI John.

This is the transition to done and the Screen is not connected to the one that pops up.

Maybe there is something in the post functions?I do not know.

Annotation 2020-05-15 101908.png

John Funk
Community Champion
May 15, 2020

I see a screen referenced in your image - UNU: Set Done

claudio_cherchi May 15, 2020

Hi John. No, even removing it I still have that screen.

John Funk
Community Champion
May 15, 2020

You should create a support request for Atlassian then. I am afraid I cannot help more. Please come back here to post the resolution once they help you. Thanks!

claudio_cherchi May 16, 2020

Hi John! No problems at all!

Indeed, thank you very much for your help.

Best regards

Claudio

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events