Is there anything something like "http://www.example.com/jira/rest/agile/1.0/sprint?project=XYZ", to retrieve all the sprints in a project.
JIRA platform api can retrieve projects info and JIRA software API can retrieve sprints for a given board. But i need sprints for any given project (combination) or atleast boards for a given project so that i can retrieve sprints in those boards later
Just in case you are still looking (or someone else is looking like me), you can get all the boards valid for a project with the same request to get all boards (see https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/board-getAllBoards).
You just have to specify as query argument (projectKeyOrId) your project. Afterwards you can use https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/board/{boardId}/sprint-getAllSprints to get all the sprints for a board.
This will include sprints not only for the project in question but all projects that are part of the board isn't it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As far as I understand, the sprints belong to the board and not the project. The mentioned method will list the sprints of the current board.
And these sprints can be used in multiple projects.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I used something like this and receive all the sprints for a project.
but you cannot find the greenhoppers documentation now. it has been deprecated. but the UrL i mentioned below is still working.
https://codegen.atlassian.net/rest/greenhopper/latest/integration/teamcalendars/sprint/list?jql=project=XYZ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what is the date format in the response?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@senduran Thank you!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
https://codegen.atlassian.net/rest/greenhopper/latest/integration/teamcalendars/sprint/list?jql=project=XYZ
I used something like this and receive all the sprints for a project.
but you cannot find the greenhoppers documentation now. it has been deprecated. but the url i mentioned above is still working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How can we get Status in side sprint ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
You can see this link to resolve it:
https://docs.atlassian.com/jira-software/REST/7.0.4/#agile/1.0/sprint-createSprint
Kind regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can get SprintManager bean and then get list of sprints.
private static SprintManager getGreenHopperRapidManager() {
OsgiContainerManager osgi = ComponentAccessor.getComponentOfType(OsgiContainerManager.class);
if (osgi == null) {
java.lang.System.out.println("OSGI Not Found");
return null;
}
Bundle[] bundles = osgi.getBundles();
for (int i = 0; i < bundles.length; i++) {
Bundle bundle = bundles[i];
if ("com.pyxis.greenhopper.jira".equals(bundle.getSymbolicName())) {
BundleContext bctx = bundle.getBundleContext();
try {
ServiceReference[] refs = bctx.getAllServiceReferences(null, null);
if (refs != null) {
for (int j = 0; j < refs.length; j++) {
Object prop = refs[j].getProperty("org.springframework.context.service.name");
if ("com.pyxis.greenhopper.jira".equals(prop)) {
ApplicationContext appCtx = (ApplicationContext) bctx.getService(refs[j]);
appCtx.getBeansOfType(SprintManager.class);
return (SprintManager) appCtx.getBean("sprintManagerImpl");
}
}
}
} catch (InvalidSyntaxException e) {
e.printStackTrace();
}
}
}
return null;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To get list of rapidviews in a project use :
.../rest/greenhopper/latest/rapidviews/list?projectKey=PKY
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Muito obrigado...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.