Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Jira 4.4.3 REST API

James Caple December 14, 2011

Hi,

I'm trying to simply get a list of Epics and associated Stories in my plugin (using Greenhopper 5.7.4) using the REST interface. This simple task does not appear to be possible using this interface. Does anyone know if I'm missing something?

What about through the Java API? Can I do this there?

The Jira SDK and APIs are really (overly) complicated and poorly documented for what they offer, IMO.

TIA,

JC

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
James Caple December 14, 2011

I figured a big piece of my problem with some dumb luck:

1) http://server:port/rest/api/2.0.alpha1/search <-- returns everything in your projects (Epics, Stories, Tasks, etc)

2) http://server:port/rest/api/2.0.alpha1/issue/{issue key} <-- Iterate over issues retured from #1 to get what you need

There may be a better way?

0 votes
rich
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 14, 2011

You figured it out before I had a chance to comment. Epics, stories, tasks are just issue types associated with an issue. You can refine your searches by issue type using JQL to filter out the results to just what you need. In JIRA 5, you don't need step 2 since the search api will return the full issue not just the issue key.

TAGS
AUG Leaders

Atlassian Community Events