Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automation on Status change to done when Resolution is set to Done for Story ticket type

Bijal Patel October 16, 2023

I am trying to set an automation when Resolution is set to Done then change the Story ticket status to Done from Closed. I have tried with simple if-when-then logic but our Story workflow doesn't allow status to transition directly from Closed to Done. 

Thus I am following the workflow transition i.e. Blocker-->Dev Testing-->PO verification-->Done. But then getting the below error msg, " Destination status could not be resolved. If using a smart-value ensure this resolves to a numeric status ID or untranslated name for issues (with current status)".

I was able to perform the same sort of automation with the Bug ticket type, but the automation kept throwing errors for Story type. Please advice, if there is a workaround or if i am missing something here. Thank you in advance!

 

Status change automation.PNG

 

 

 

 

 

5 answers

1 accepted

0 votes
Answer accepted
Bijal Patel October 26, 2023

Solution: What worked for us:

Adding Automation for Jira user in project role "atlassian-addons-project-access".

In other words, adding the above condition in the workflow transitions for Story ticket type.

0 votes
Tim C
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.
October 17, 2023

Hi @Bijal Patel 

I'd suggest adding a direct transition from "Closed" to "Done" (called 'auto-close' or something) and make sure there's no screens, conditions or validators on that transition.

Alternatively, you could share the existing transition to "done" (from the "closed" status) assuming there's no screens associated with it and/or any conditions or validators are true.

The "Resolution" field should only be set on transition to Close.  Hence, use this transition to trigger your rule and then check whether the resolution field is set to "Done".  If so, then automation should transition to "Closed".

The following works fine for me...

Screenshot 2023-10-17 085905.png 

I hope this helps?

Thanks,

TC.

Bijal Patel October 17, 2023

@Tim C - I have tried this but getting the same error msg. See below.

 

 

A1.PNG

Tim C
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.
October 17, 2023

Hi @Bijal Patel 

Did you add an extra transition directly from "closed" to "done" in your workflow(s)?

Bijal Patel October 17, 2023

I would, but unfortunately we are not allowed to make any modification to the existing workflow. And that is why I am looking for a workaround :( 

Tim C
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.
October 17, 2023

Hi @Bijal Patel 

If you can ... try to get your jira admin to add the extra transition then that's the simplest route.  You could get them to add a condition on this transition to limit it only the specific user (actor) for the rule - or add a new group in which the actor belongs (e.g. "automation for jira" is usually the default actor?).

However, if you really can't get a change to the workflow - then you'll be forced to go down your original suggested route of moving them through series of transitions ...

  • closed
  • blocker
  • dev testing
  • po verification
  • done

It's not very efficient - but I think you may need 4 separate rules - one looking for each of the corresponding transitions and passing onto next one (i.e. allowing you to automatically move tickets in between the 5 statues).

Any conditions or validation used on any of these transitions would also need to be successful as part of the automation.  Also, if there's any workflow screens being displayed on any of these transitions then again this may restrict the rule from running.   

I hope this helps?

Thanks,

TC.

0 votes
Boldizsár Vermes
Contributor
October 16, 2023

@Bijal Patel, it seems that the automation could not move the issue from Closed status to Blocker. Is it really a valid transition? Are you able to move the issue from Closed to Blocker manually?

Bijal Patel October 17, 2023

@Boldizsár Vermes - Yes, I can manually moved the issue from "Closed" to "Blocker". Infact it can ONLY move to "Blocker" stage when the issue is "Closed". see below:

 

A2.PNG

Boldizsár Vermes
Contributor
October 17, 2023

@Bijal Patel, can this transition be restricted to some role or similar? Could you try to switch the Actor of the role among the Role details to yourself?

0 votes
Bijal Patel October 16, 2023

@Mikael Sandberg - I have attached the workflow for your review. 
We are using Resolution Jira system field. 

Condition formatting is implemented when transitioning to "Closed" status, Popup window shows up for a user to provide a reason for closing the ticket out. 

User should only be choosing "Closed" for special cases e.g. Duplicate ticket, Cancelled Requirements, etc.

 

In our case; User is selecting "Closed" as a ticket status and in the resolution field they are selecting "Done". 

What I am trying to do here is : When resolution is Done/fixed/pass/resolved then change the Ticket status to "Done" instead of "Closed"

 

story WF.PNG

Mikael Sandberg
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 16, 2023

You said you had a similar automation for bugs that works, correct? And are both bugs and stories using the same workflow? Does the global transition to Blocker have any conditions on it?

0 votes
Mikael Sandberg
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 16, 2023

What does your workflow looks like? When are you setting the resolution? Normally the resolution is set as part of a transition since that field becomes required when it is added to a screen.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events