Ok, wireshark and some guessing pointed me to the solution.
Get all features of a project:
http://myjira.com/rest/cucumber/1.0/project/RSG/features
Get the scenarios and steps of a feature:
http://myjira.com/rest/cucumber/1.0/project/RSG/feature/1/scenarios
Whats bogus is that the scenarios are not present in the feature json. At least there should be a link to it.
The feature JSON would get rather large if the Scenarios were returned in full.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's only possible to access all linked Scenarios in the Behave for JIRA REST API. Features are not directly linked JIRA issues
Have used the JIRA REST api browser to view the end points available?
To access scenarios directly you need to know the feature id and scenario id: /project/{KEY}/feature/{FID}/scenario/{SID}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Martin,
what do you mean under "all linked features" ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, i meant all features of a project.
I did some research and found a way to get the features:
http://myjira.com/rest/cucumber/1.0/project/RSG/features
But how do i get the scenarios and the steps?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.