Show child issues if the parent fits certain criteria
Asked by Abby Kaske:

Hi,  

I've been trying to figure this out and each time I think I've found the answer, it doesn't actually work for me.  

Background:  
We have one board for Support tickets. Support creates an "incident" for every time a customer calls in with a bug. If the same/similar bugs are reported, then they get grouped into a "Problem." Incidents are reported by individual Support personnel; Problems are reported by one lead who goes through and groups them. The relation type is "is caused by"

The Problem is then taken into Product Backlogs (separate projects) to be worked by the scrum teams. Individual Incidents remain on the Support Board. The Support Team wants an easier way to get updates on the Problems that are being prioritized and worked.  

Our attempted solution:  
We created a Confluence page for Support to view all problems across the multiple projects that have been prioritized for current sprints. This works for visibility, HOWEVER, it would be majorly improved if we could do the following on that page as well:  

Display INCIDENTS from the Support Board IF the related/parent PROBLEM meets the following criteria:  
\* Is on one of three specific projects  
\* Is in a current sprint OR Done (rolling 15 days)

Support does not want to auto-update the statuses of their incidents, otherwise we would have looked at triggering status change based on the parent/related issue.

I'm not entirely convinced this is actually a thing we could do, but figured I'd ask the Community since there is such a wealth of knowledge across this forum!


Answers:
author: Shannon S
body: Hello Abby,

Welcome to Atlassian Community! It's nice to meet you.

I see that you raised the same question with our support team, which has been resolved for you. I'll include the answer here so it can help other users.
> You can achieve that by adding a post function in the workflow associated to the sub-task issue type in the desired projects. See the example below:
>
> * Project settings -\> **Workflows** -\> click on the pen icon next to the workflow associated to the sub-task issue type:  
>
>   ![7.png](https://community.atlassian.com/t5/image/serverpage/image-id/62783i18103C28C639336E/image-dimensions/99x227?v=v2 "7.png")![1.png](https://community.atlassian.com/t5/image/serverpage/image-id/62784iEB6F74F4896FF7E7/image-dimensions/413x227?v=v2 "1.png")
> * In **Diagram** mode, click on the **Create** transition -\> click on **Post Functions** in the pop-up window:  
>
>   ![2.png](https://community.atlassian.com/t5/image/serverpage/image-id/62785i3B9D489E9DFD20C8/image-dimensions/506x337?v=v2 "2.png")  
>
> * Click on **Add post function** :  
>
>   ![3.png](https://community.atlassian.com/t5/image/serverpage/image-id/62786iFC4947835B77918E/image-dimensions/481x276?v=v2 "3.png")
> * Check the **Copy Value From Other Field** post function -\> **Add** :  
>
>   ![4.png](https://community.atlassian.com/t5/image/serverpage/image-id/62787iA5FEE4FCB0E2EA69/image-dimensions/472x320?v=v2 "4.png")
> * Select the **Assignee** field in both origin and source fields dropdown -\> check the **Copy from parent** option -\> **Add** :  
>
>   ![5.png](https://community.atlassian.com/t5/image/serverpage/image-id/62788i4A2E7619FD841244/image-dimensions/491x287?v=v2 "5.png")
> * Make sure the post function that copies the value comes before the **Creates the issue originally** post function:  
>
>   ![8.png](https://community.atlassian.com/t5/image/serverpage/image-id/62789i96C703172831289E/image-dimensions/378x223?v=v2 "8.png")
> * Publish the workflow!
>
> You may want to use this documentation as future reference as well:
>
> * [Advanced workflow configuration](https://confluence.atlassian.com/adminjiracloud/advanced-workflow-configuration-776636620.html#Advancedworkflowconfiguration-postfunctions)

Let us know if you have any questions about this.

Regards,

Shannon

comments: author: Abby Kaske
body: Hi Shannon,

That's not what I was asking.

In Confluence, we want to show JQL search results for all incidents IF the parent issue is in a certain state or in a certain project.

If it's not possible, I'd just like to know so I can stop spinning my wheels on it.

Thanks


author: Shannon S
body: Hello Abby,

Thank you for taking the time to clarify that for me.

There's not a built-in way for this but you may be able to extend your JQL functionality to include that functionality by using the [JQL Enhancer](https://marketplace.atlassian.com/search?hosting=cloud&product=jira&query=enhancer) plugin or something like [Scriptrunner](https://marketplace.atlassian.com/search?hosting=cloud&query=scriptrunner).

Regards,

Shannon


Tags: adaptavist

atlassian-marketplace

cloud

confluence-cloud

jira

jira-cloud