Unable to find JQL function 'testPlanTests'

TesterC
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 12, 2020

I receive the following error message: "Unable to find JQL function 'testPlanTests(MyTestPlan)'.

Query in Search:      issue in testPlanTests("MyTestPlan")
Just follwing the instructions on: https://docs.getxray.app/display/XRAY/Enhanced+querying+with+JQL

Also tested:       issue in testPlanTests('MyTestPlan')      same error.

"MyTestPlan" does exists containing 31 "Test"s.

 

What could be the reason? Something wrong with the query or maybe anyting with the Xray plugin configuration?

 

Config: Running Jira Software on top of Jira Core.

 

 

3 answers

1 vote
Jerry Ji May 16, 2024

before migration to Cloud/SaaS, it works fine, after migrated, I got the same error.

Can someone pls help here?

0 votes
cheryl.peralta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 21, 2023

i am having the same question. 

0 votes
Sergio Freire - Xblend
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.
August 14, 2020

Hi @TesterC 

The JQL enhanced function is not being correctly used, as the testPlanTests is designed to "Returns a list of tests that are associated with the test plan." That being said, the Saved Filter you can use inside said function needs to contain Test Plans, not Tests.

If you need a function to give you the Test Plan's associated with a Test, use the testTestPlan function. However, please take into consideration that this function does not support Saved Filters, only a single Test issue key at a time."

If you have any more doubts, contact Xray support and the team will be glad to help you out.

Best Regards, 

 

Sérgio Freire, Solution Architect and Testing Advocate @Xray

Personal blog on testing, Agile and software development: https://sergiofreire.com

Follow me on Twitter: https://twitter.com/darktelecom

Suggest an answer

Log in or Sign up to answer