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

Filter Issue Scope (IQL) base on current project

ken February 19, 2022

Hi,

I create an Insight Custom Field - when create issue it only show versions object of current jira project.

 

step:

1、create an empty Object Schema.

2、use plugin (Insight Jira and Bitbucket Integration) to import all jira info to this Object Schema

project object info

1.png

version object info

2.png

3、create an Insight Custom Field ,configure info

3.png

4、result: nothing in the Insight Custom Field

4.png

5、if change the Filter Issue Scope to an project,it work

5.png

6.png

 

Anyone can help,how to configure Filter Issue Scope(IQL) to query version object base on current project.

 

 

Reference documents:

 

 

 

2 answers

0 votes
Thomas Heidenreich
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.
September 18, 2022

As a workaround you could use a script custom field that just holds

return issue.project.key

and use that in the Filter Issue Scope. 

But for the creation of the issue you still need the old Filter. So together it yould be:

Project."Id" = ${pid.id} OR Project."Key" = ${theCustomScriptField}
0 votes
ken February 19, 2022

change the Filter Issue Scope,

Project."Id" = ${pid.id}

it work in create screen,but not work in edit screen.

Why?

Eugeny Chernyavsky September 16, 2022

I have exactly the same issue, Have you resolved it somehow?

Eugeny Chernyavsky September 22, 2022

We managed to resolve it on edit screen either:
We populated new Project type attribute for Project object type (Jira object from Jira import) and then IQL works on edit screen:
Project."Jira Project" = currentProject()

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events