Hi everyone,
we are using Jira Product Discovery to document all our ideas. Once an idea is fully defined, we directly create a delivery ticket from the Jira Product Discovery issue so that everything is nicely linked together.
Example - how the delivery ticket is created from Product Discovery
Example - end result of the delivery ticket linking the Discovery Ticket
Now I’d like to set up an automation that updates the status of the idea in Jira Product Discovery whenever the status of the delivery ticket changes in Jira.
I’ve already seen solutions that work with connected work items, but this doesn’t work for me because ideas created in Jira Product Discovery and their linked delivery tickets are not connected as “connected work items.” Instead, they are linked in a different way (idea → delivery ticket), as shown in my last screenshot.
Ideally, the trigger should be a status change on the delivery ticket, but I’m not sure whether it’s possible to configure the automation to recognize the way Jira + Jira Product Discovery link these tickets.
Has anyone already solved this?
Thanks in advance!
As you found, when Jira Product Discovery (JPD) uses the "Delivery Ticket" feature, that is a special type of link. And the Story work items are in different projects than JPD, requiring:
Putting those together, your rule could look like one of these approaches, created from the global automation area to set the scope:
Using conditions...
There is a template rule based on this approach in JPD projects, but it only handles one status type. Please look at that template if you want to use that:
When a delivery ticket is done → mark idea as done
Another way to do this is with the REST API to transition the status, eliminating the need for the if / else block. Although that is shorter, it has additional complications:
Kind regards,
Bill
Hey Bill, thanks for your input. I'm having trouble with the linkedIssues() function when trying to find the associated Idea. According to the documentation, it's possible to find a linked ticket of a particular type, but I can’t manage to translate that into a proper JQL query. Could you please send me the exact JQL statement?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi and welcome to the community!
Short answer: Not directly
Long answer: With a workaround
Here is what you could do with automation:
The automation trigger for Idea linked is a bit tricky, something you just need to know:
Use the Polaris issue link type to detect the link. What I did here is comment the triggering and destination issue to see which is which.
Issue = Delivery
Destination = Idea
Using this you can link them together via the regular link. A workaround, but the only thing I can come up with.
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jeroen, thanks for your quick reply.
I don’t see the link type “Polaris issue link” in the trigger “Work item linked”.
I can choose from three types:
- Polaris datapoint work item link (added to idea, is idea for)
- Polaris merge work item link (merged into, merge from)
- Polaris work item link (is implemented by, implements)
Which type should I use? I assume it’s type 1 (Polaris datapoint work item link)?
We’re on the standard version of Jira and Jira Product Discovery premium.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Work items is the new terminology for what used to be issue. So the last one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay, thanks. Now I have the problem that {{destinationIssue.key}} doesn’t work in the comments. It gives me an empty output, meaning it doesn’t write the key into the comment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Make sure you are looking at the comments of the correct work item (idea or delivery).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.