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

This widget could not be displayed.

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.

This widget could not be displayed.

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?

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Jul 25, 2018 in Marketplace Apps

Jira Cloud and Bitbucket Cloud Integration with Microsoft Teams

One of the newest products in the Microsoft family - Microsoft Teams,  is a chat-based hub for teamwork that integrates all the people, content, and tools your team needs to be more engaged and ...

721 views 0 3
Read article

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