JQL クエリで以下の JQL 関数が synapseRT 関連検索用に提供されています。
testSuite()
testSuite() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in testSuite() |
任意のテスト スイートでテスト ケースを検索します。 |
|
2 |
issue in testSuite('Test Suite Name') |
ルート テスト スイートでテスト ケースを検索します。 |
|
3 |
issue in testSuite('Test Suite 1/Sub Test Suite') |
特定のテスト スイートでテスト ケースを検索します (ルート テスト スイート内) |
|
4 |
issue in testSuite('Test Suite 1','Test Suite 2') |
複数の特定のテスト スイートでテスト ケースを検索します。 |
|
5 |
issue not in testSuite() |
テスト スイートにないテスト ケースを検索します。 |
hasRequirements()
hasRequirements() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in hasRequirements() |
要件が関連付けられているテスト ケースを検索します。 |
|
2 |
issue in hasRequirements('Issuekey1','Issuekey2') |
指定の要件が関連付けられているテスト ケースを検索します。 |
|
3 |
issue not in hasRequirements() and type = 'Test Case' |
要件が関連付けられていないテスト ケースを検索します。 |
hasTestCases()
hasTestCases() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in hasTestCases() |
テスト ケースが関連付けられている要件を検索します。 |
|
2 |
issue in hasTestCases('Issuekey1','Issuekey2') |
指定のテスト ケースが関連付けられている要件を検索します。 |
|
3 |
issue not in hasTestCases() and type = 'Requirement' |
テスト ケースが関連付けられていない要件を検索します。 |
requirementSuite()
requirementSuite() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in requirementSuite() |
任意の要件スイートで要件を検索します。 |
|
2 |
issue in requirementSuite('Requirement Suite Name') |
ルート要件スイートで要件を検索します。 |
|
3 |
issue in requirementSuite('Requirement Suite 1/Sub Requirement Suite') |
(ルート要件スイート内の) 指定要件スイートの要件を検索します。 |
|
4 |
issue in requiremenSuite('Requirement Suite 1','Requirement Suite 1') |
複数の指定要件スイートで要件を検索します。 |
|
5 |
issue not in requiremenSuite() |
要件スイートにない要件を検索します。 |
bugsInTestPlan()
bugsInTestPlan() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in bugsInTestPlan("Issuekey") |
テスト計画から作成されたバグを検索します。 |
|
2 |
issue in bugsInTestPlan('Issuekey1','Issuekey2') |
指定のテスト計画キー issueKey1 および issueKey2 に関連付けられているバグを検索します。 |
bugsInCycle()
bugsInCycle() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in bugsInCycle('TestCycleName') |
指定のテスト サイクル名に関連付けられているバグを検索します。ワイルドカード検索を利用できます。 |
bugsInTestCase()
bugsInTestCase() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in bugsInTestCase('issueKey') |
指定のテスト ケース キー issueKey に関連付けられているバグを検索します。 |
|
2 |
issue in bugsInTestCase('issueKey1','issueKey2') |
指定のテスト ケース キー issueKey1 および issueKey2 に関連付けられているバグを検索します。 |
bugsInRequirement()
bugsInRequirement() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in bugsInRequirement('issueKey') |
指定の要件キー issueKey に関連付けられているバグを検索します。 |
|
2 |
issue in bugsInRequirement('issueKey1','issueKey2') |
指定の要件キー issueKey1 および issueKey2 に関連付けられているバグを検索します。 |
bugsInBuild()
bugsInBuild() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in bugsInBuild('BuildName') |
指定のビルド名に関連付けられているバグを検索します。 |
|
2 |
issue in bugsInBuild('BuildName1','BuildName2') |
指定のビルド名に関連付けられているバグを検索します。 |
bugsInEnvironment()
bugsInEnvironment() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in bugsInEnvironment('EnvName') |
指定の環境名に関連付けられているバグを検索します。 |
|
2 |
issue in bugsInEnvironment('EnvName1','EnvName2') |
指定の環境名に関連付けられているバグを検索します。 |
hasActiveCycle()
hasActiveCycle() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in hasActiveCycle() |
アクティブ テスト サイクルがあるテスト計画をすべて検索します。 |
hasCycleWithBugs()
hasCycleWithBugs() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in hasCycleWithBugs() |
バグを持つテスト サイクルがあるテスト計画をすべて検索します。 |
hasCycleWithUnresolvedBugs()
hasCycleWithUnresolvedBugs() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in hasCycleWithUnresolvedBugs() |
未解決バグを持つテスト サイクルがあるテスト計画をすべて検索します。 |
hasCycleWithFailedTestCases()
hasCycleWithFailedTestCases() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in hasCycleWithFailedTestCases() |
失敗したテスト ケースを持つテスト サイクルがあるテスト計画をすべて検索します。 |
hasCycleWithBlockedTestCases()
hasCycleWithBlockedTestCases() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in hasCycleWithBlockedTestCases() |
ブロック テスト ケースを持つテスト サイクルがあるテスト計画をすべて検索します。 |
hasCycleWithUntestedTestCases()
hasCycleWithUntestedTestCases() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in hasCycleWithUntestedTestCases() |
未テストのテスト ケースを持つテスト サイクルがあるテスト計画をすべて検索します。 |
hasCyclesOfDefectCount()
hasCyclesOfDefectCount() JQL 関数の使用例を以下に示します。サポートされる演算子は、"=="、">="、および "<=" です。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in hasCyclesOfDefectCount("10") |
不具合数が 10 件のテスト サイクルを持つテスト計画をすべて検索します。 |
|
2 |
issue in hasCyclesOfDefectCount("<=","10") |
不具合数が 10 件以下のテスト サイクルを持つテスト計画をすべて検索します。 |
|
3 |
issue in hasCyclesOfDefectCount(">=","10") |
不具合数が 10 件以上のテスト サイクルを持つテスト計画をすべて検索します。 |
testPlanMembers()
testPlanMembers() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in testPlanMembers("issueKey") |
指定のテスト計画キー issueKey と関連付けられているテスト ケースを検索します。 |
|
2 |
issue in testPlanMembers("issueKey","Result") |
指定のテスト計画および実行結果と関連付けられているテスト ケースを検索します。 |
childrenOfParentRequirement()
childrenOfParentRequirement() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in childrenOfParentRequirement("issueKey") |
指定の要件キー issueKey の直下の子要件のみを検索します。 |
|
2 |
issue in childrenOfParentRequirement("issueKey","all") |
指定の要件キー issueKey の直下の要件、およびすべてのレベルの孫要件を検索します。 |
testPlansForTester()
testPlansForTester() JQL 関数の使用例を以下に示します。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in testPlansForTester("username") |
テスター (= ユーザー名) が割り当てられているテスト計画を検索します。 |
testCycleMembers()
testCycleMembers() JQL 関数の使用例を以下に示します。サポートされる演算子は、"=="、">="、および "<=" です。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in testCycleMembers('TestPlanIssueKey','TestCycleName') |
指定したテスト サイクルからテスト ケース メンバーをすべて検索します。 |
|
2 |
issue in testCycleMembers('TestPlanIssueKey','TestCycleName','Not Tested') |
指定したテスト サイクルから "未テスト" のテスト ケース メンバーをすべて検索します。 |
|
3 |
issue in testCycleMembers('TestPlanIssueKey','TestCycleName','NA') |
指定したテスト サイクルから "該当なし" のテスト ケース メンバーをすべて検索します。 |
|
4 |
issue in testCycleMembers('TestPlanIssueKey','TestCycleName','Passed') |
指定したテスト サイクルから "合格" のテスト ケース メンバーをすべて検索します。 |
|
5 |
issue in testCycleMembers('TestPlanIssueKey','TestCycleName','Failed') |
指定したテスト サイクルから "失敗" のテスト ケース メンバーをすべて検索します。 |
|
6 |
issue in testCycleMembers('TestPlanIssueKey','TestCycleName','Blocked') |
指定したテスト サイクルから "ブロック" のテスト ケース メンバーをすべて検索します。 |
testersOfCycle
testersOfCycle JQL 関数の使用例を以下に示します。
testersOfCycle JQL 関数で利用できる演算子は、=、!=、is not、is、not in、in です。
なお、この JQL はテスト サイクル ページでのみ使用するよう作成されています。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
testerOfCycle = <username> |
指定の JIRA ユーザーに割り当てられたテスト実行を検索します。 |
|
2 |
testersOfCycle = currentUser() |
現在の JIRA ユーザーに割り当てられたテスト実行を検索します。 |
resultsOfCycle
resultsOfCycle() JQL 関数の使用例を以下に示します。
resultsOfCycle() JQL 関数で利用できる演算子は、=、!=、is not、is、not in、in です。
なお、この JQL はテスト サイクル ページでのみ使用するよう作成されています。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
resultsOfCycle = <result> |
指定のテスト結果のテスト実行を検索します。 |
|
2 |
resultsOfCycle in ("Result1","Result2") |
指定のテスト結果 (複数) のテスト実行を検索します。 |
testersOfCycle()
testersOfCycle() JQL 関数の使用例を以下に示します。
なお、この JQL はテスト サイクル ページでのみ使用するよう作成されています。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in testersOfCycle("username") |
指定の JIRA ユーザーに割り当てられたテスト実行を検索します。 |
|
2 |
issue in testersOfCycle("username1","username2") |
指定の JIRA ユーザー (複数) に割り当てられたテスト実行を検索します。 |
resultsOfCycle()
resultsOfCycle() JQL 関数の使用例を以下に示します。
なお、この JQL はテスト サイクル ページでのみ使用するよう作成されています。
|
ID |
用途 |
説明 |
|---|---|---|
|
1 |
issue in resultsOfCycle("Result") |
指定のテスト結果のテスト実行を検索します。 |
|
2 |
issue in resultsOfCycle("Result1","Result2") |
指定のテスト結果 (複数) のテスト実行を検索します。 |