hi i retrived all the project by getProjects() method using atlassian api
ComponentManager cm=ComponentManager.getInstance();
ProjectManager dm=cm.getProjectManager();
dm.getProjects();
Next i would like to do to retrive the issues for that projects
so i need to retrive the objects which returns from dm.getprojects() method using iterator..
Please suggest me how to do that
Hi,
use IssueManager and methods:
Collection<Long> getIssueIdsForProject(Long projectId)
MutableIssue getIssueObject(Long id)
More http://docs.atlassian.com/jira/latest/com/atlassian/jira/issue/IssueManager.html
Sorry i didnt understand how to use these methods because now only i'm learning about this....
Can u please tell me a brief explanation about it how to use this with examples which can be understand to a begineer...
i want examples to getprojects from that projects i need to get the all the issues for that project.. is it possible to print that issues(If possible means pls tel with example)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have mentioned that to pass the project id for getissueidsforproject().. How to pass that project ids when i use getprojects() method?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
JIRA 4.4 pseudocode:
ProjectManager pm = ComponentAccessor.getProjectManager(); IssueManager im = ComponentAccessor.getIssueManager(); MutableIssue mi; for (Project project : pm.getProjectObjects()) { for (Long issueId : im.getIssueIdsForProject(project.getId())) { mi = im.getIssueObject(issueId); // Some operations with issue object System.out.println("Project: " + project.getKey() + ", issue: " + mi.getKey()); } }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi it runs successfully.....but it does not print any thing about the projectkey and about the issue... Pls suggest me...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Should be printed in Tomcat console - if code is a part of the plugin in bundled JIRA server, or use logger and check log files. There are many options how to check this, run in debug mode, populate to user view layer, ...
You are probably not a java developer, because these are bacis simple steps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes sir, you are right. now only i'm learning about these...Thats why.. Dont mistake me...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sir Kindly please guide me how to get the due date for the issue.?????
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use your brain and JIRA API, all you need is in MutableIssue object.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.