Access features and scenarios by REST api?


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

3 answers

1 accepted

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
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