Access features and scenarios by REST api?

Hi,

is it possible to access all linked features by the Jira REST API?

3 answers

1 accepted

Accepted Answer
0 votes

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.

Hi Martin,

what do you mean under "all linked features" ?

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?

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}

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Thursday in Marketplace Apps

You + one app + a desert island...

Hi all! My name is Miles and I work on the Marketplace team. We’re looking for better ways to recommend and suggest apps that are truly crowd favorites, so of course we wanted to poll the Community. ...

1,919 views 4 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you