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

Build queue for any tickets w linked issues are marked as DONE

Blake
Contributor
October 3, 2024

I want to setup a queue for my support project. Since I am the one that receives client support tickets, it is up to me to try to resolve. If I cannot, I create a dev ticket which goes into another project. I do this because often clients do not formulate well detailed tickets; therefore I must write a proper ticket for devs to understand. I then link this ticket to the original support ticket via linked issue.

Problem

If the linked ticket gets marked as DONE, great. But, I have no idea if/when this happens. So the client ticket is sitting IN PROGRESS, while its linked ticket is DONE. 

My Need

I need to be alerted, or a rule, or a queue for myself for when these linked issues are DONE, so I can go in and test and see if issue is truly fixed, and if so I can decide to officially close my client ticket.

I would make a queue called "For Review" so I can filter by these support tickets and accomplish the above.

My thought for the flow is simple: If any tickets with linked issues have a status of DONE for the linked issue, then show in queue.

 

How can I make this queue?

3 answers

0 votes
Anusha A
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 23, 2024

Hi @Blake

Appreciate your question on community. 

As per my understanding of the issue, you would like to be alerted when a JSW (Jira software)ticket linked to a JSM (Jira service management) ticket is closed. To give some context on the same line, Queues contain JQL and with JQL we can only go so far with linkedIssues() and Issue link. We cannot use Queue unfortunately because there is no way to find issues if any issue with linked issues has a status of DONE for the linked issue.

Recommendation: Automation rule.

  1. Trigger: Issue transitioned
    1. From status: leave blank
    2. To status: Done
  2. Condition: Issue fields condition
    1. Field: Project
    2. Condition: equals
    3. Value: JSW project
  3. Branch: Branch rule / related issues
    1. Type of related issues: Linked issues
  4. Condition: JQL condition
    1. projectType = service_desk
  5. Action: Send email
    1. Subject: {{triggerIssue.key}} is closed now
    2. Content: Please take action on its linked issue: {{triggerIssue.issuelinks.inwardIssue}}

Screenshot 2024-10-23 at 5.14.38 PM.png

Hope that clarifies a bit further. 

Regards,

Anusha A

Blake
Contributor
November 1, 2024

Hopefully this gets me there?

Untitled.png

Blake
Contributor
November 1, 2024

Ok I dont think it will work, because you are saying we cannot even check status outside of this project. Also, for the very first step "when" it only allows for statuses in the JS project not JOB, and JOB is what I need. 

This seems to be a need that is not possible. Interesting..

Anusha A
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 4, 2024

Hi @blake

To ensure we can assist you effectively with this case, I have created a support ticket on your behalf. You should have received an email notification confirming this.

Regards,

Anusha A

Blake
Contributor
November 8, 2024

i have, and granted approved access for you and your team. I have not received any info nor update here; please let me know if my original ask is possible or an alternative possible. 

0 votes
Max - Swift Checklist Dev
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 4, 2024

Hi @Blake

 

I managed to resolve it in the following way:

1. Move all tickets that are blocked by development tickets into BLOCKED status

2. Add Automation that runs on schedule (let's say every 10 minutes), it selects all BLOCKED tickets and checks statuses of linked issue, if all linked issues are done, then transition the issue into IN PROGRESS

 

Rule

Screenshot 2024-10-04 at 17.09.47.png

Screenshot 2024-10-04 at 17.10.12.png

Screenshot 2024-10-04 at 17.10.38.pngScreenshot 2024-10-04 at 17.10.59.png

Blake
Contributor
October 9, 2024

thanks for your response. 

 

I am unable to build out from "IF linked issues match". it does not exist in my if: add a condition options. 

Max - Swift Checklist Dev
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 9, 2024

It should be in IF: Add a condition -> Related issues condition -> Related issues: Linked issues.

Blake
Contributor
October 9, 2024

Got it!

Hmm, it looks like it isnt working. I think its becuase its limited to searching only within this project. I thought that may be an issue. It should have found JS-1077 as the 1 ticket with a linked issue DONE, therefore shoudl have switched status to final review.

the errors below were due to no quotation marks around my "in progress" status JQL query.

Untitled.png

Max - Swift Checklist Dev
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 10, 2024

Yep, automations really limited to the project where they are created...

 

Updated rule a little bit:

Creating a variable doneIssues with to calculate done issues. You can change the status name if needed. 

 {{#=}}0{{#issue.issuelinks.inwardIssue}}{{#if(equals(status.name,"Done"))}}+1{{/}}{{/}}{{/}}

And then just comparing number of done issues with total amount of linked issues.

 

Screenshot 2024-10-10 at 20.45.57.pngScreenshot 2024-10-10 at 20.46.27.png 

Blake
Contributor
October 14, 2024

ah it looks like it still has some issues. i tried to find a correlation between these tickets mentioned; but there seems to be none. half dont even have a linked issue...

any thoughts? thank you so much for your help thus far.screenshot.png

Blake
Contributor
October 14, 2024

not sure if this workflow helps understand the reason for the error?

screenshot.png

Max - Swift Checklist Dev
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 28, 2024

@Blake , 

This error may occur if there is no valid transition from the current issue status to the new issue status.

For example:

If your workflow is TO DO → IN PROGRESS → DONE, and in an automation, you attempt to move a ticket directly from TO DO to DONE, it will not work. The ticket must first be in the IN PROGRESS status before it can be moved to DONE.

0 votes
Aaron Pavez _ServiceRocket_
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 3, 2024

Hi @Blake 

You can create a new queue:

https://support.atlassian.com/jira-service-management-cloud/docs/create-a-new-queue/

In the Filter by you need to set for example:

status = Done 

If you want to add more, you could add resolution = done too if needed. Or another JQL condition.

For the alert, you can create an automation to check if a ticket is parked in done for too long.

But it's better to use another field for that or manually run the automation.

Or a JQL like:

project = projectname AND NOT status CHANGED AFTER -5d

then use that in a scheduled rule.

Hope that helps!

Regards

Blake
Contributor
October 3, 2024

@Aaron Pavez _ServiceRocket_ please re-read my need. I am not looking for the status of the support ticket. thank you

Suggest an answer

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

Atlassian Community Events