Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to view Test Case Phase via GraphQL API #184

Closed
inance opened this issue Jul 15, 2022 · 6 comments
Closed

Unable to view Test Case Phase via GraphQL API #184

inance opened this issue Jul 15, 2022 · 6 comments

Comments

@inance
Copy link

inance commented Jul 15, 2022

Describe the bug
I'm using GraphQL to view TestCase objects, but it does not appear that Phase is available via the API.

To Reproduce
Steps to reproduce the behavior:
Query GraphQL for TestCase data. Documentation does not show Phase or PhaseID as an available data field.

Expected behavior
Would like to be able to gather phase information for test cases when querying through GraphQL.

@SRAPSpencer
Copy link
Collaborator

After discussing with the team we understand the request and have added it to our request tracker.

@inance
Copy link
Author

inance commented Jul 18, 2022

Thank you very much. If I can clarify anything, let me know. If it helps: I want to use GraphQL to pull down a list of TestCases from a campaign and organize them by the Phase they were assigned. It is included when exporting a report, but not with GraphQL (unless there's something I'm missing).

@atropineal
Copy link

+1 for this :) I'm currently using the API to generate a MITRE ATT&CK navigator JSON file. Because of the lack of phase data from the GraphQL API, a TTP associated with more than 1 tactic will be associated with all tactics. My workaround was to add phase tags to test cases with TTPs that apply to more than 1 tactic.

@thebleucheese
Copy link
Contributor

+1 for this :) I'm currently using the API to generate a MITRE ATT&CK navigator JSON file. Because of the lack of phase data from the GraphQL API, a TTP associated with more than 1 tactic will be associated with all tactics. My workaround was to add phase tags to test cases with TTPs that apply to more than 1 tactic.

@atropineal and @inance this addition to the API (along with the ability to update Test Cases and also pull the Kill Chain data with Assessments) will be in the next release, we're testing internally right now

@atropineal
Copy link

Woohoo! And thank you so much for this fabulous tool.

@doodleincode
Copy link
Contributor

This has been addressed in ce-8.6.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants