Access features and scenarios by REST api?


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

3 answers

1 accepted

0 votes
Accepted answer

Ok, wireshark and some guessing pointed me to the solution.

Get all features of a project:

Get the scenarios and steps of a feature:

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:

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
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,706 views 3 11
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