Our company have our partners listed in a parent issue. Each of their purchases are created with a subtask to track the items and the day of purchase. We are currently trying to find all active partners , and their last known purchase. Below is an example on our issue hierarchy.
Example
Parent Key 1.1
-Purchase Ticket 1.1, status = Completed
- Purchase Ticket 1.2, Status = Canceled
Parent Key 2
- Purchase Ticket 2.1, status = Canceled
- Purchase Ticket 2.2, status = Completed
- Purchase Ticket 2.3, status = Completed
We would like to find the last known order issues by with our partners. I hope there is a way to find latest completed Tickets. We have scriptrunner if it helps or if there are plugins that can help this would be very helpful! Thanks guys !
The result we hope to achieve is
-Purchase Ticket 2,3
-Purchase Ticket 1.1