How to create a filter that show me a issuetype list based from field from other issuetype?

I have a issuetype named SPECIFICATION.

SPECIFICATION has a field named MODULE. When we fill the MODULE, we have 3 options: (M-A, M-B, M-C).

Module is a mandatory field that is filled when create the SPECIFICATION.

-----------------

I have another issuetype named BUG.

When create a BUG,  has a mandatory field that inform the SPECIFICATION that the BUG impact. So, the BUG always has a SPECIFICATION linked.

The BUG dosen't have the module informationm due the BUG has the SPECIFICATION linked, and the SPECIFICATION has a field that inform the MODULE.

----------------

My Doubt:

How to create a filter that show me JUST BUGs that is linked with SPECIFICATION that has MODULE="M-C"?

1 answer

0 vote
Alexey Matveev Community Champion Jan 08, 2018

Hello,

You can not do it out of the box. You have to use an add-on for it. There are a couple of add-ons which will let you make such a filter. For example, if you are on Jira Server/Data Center you could use Power Scripts add-on. You would need to write a script which would return you the desired results. You script would look like this

string [] keys = selectIssues(argv[0]);
string [] ret;
for(string k in keys) {
   for (string lk in linkedIssues(k)) {
         if (%lk%.issueType == "SPECIFICATION" && %lk%.#{MODULE} == argv[1]) {
            ret += k;
         }
   }
}
return ret;

 

Then you could call your script in a JQL query like this and create a filter out of the JQL Query

key in silJQLList("yourScriptName", "issuetype = BUG", "M-C")

You can modify your script as you wish. You can find more info on Power Scripts here:

https://marketplace.atlassian.com/plugins/com.keplerrominfo.jira.plugins.jjupin/server/overview

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

800 views 2 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you