Ok. As always, a good answer depends on the question.
Priority (all):
ComponentManager.getComponentInstanceOfType(ConstantsManager.class).getPriorityObjects()
Issue type (all):
ComponentManager.getComponentInstanceOfType(ConstantsManager.class).getAllIssueTypeObjects()
but: issue types depends on the project (actually scheme), so:
ComponentManager.getComponentInstanceOfType(IssueTypeSchemeManager.class).getIssueTypesForProject(project)
Status depends on the workflow. So you need to study a bit how the WF is integrated in Jira.
Of course, if I understand what you are asking. I confess that I still have doubts.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
These are on the issue:
issue.getPriorityObject()
etc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Or you can get issue.getGenericValue() and just iterate through the keys. Sounds like something is a bit wrong in your design though.
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.
Your code needs to fetch and process each field that is on the issue.
Some handle very similarly (e.g. affects and fix versions), but most are different, so you actually need to decide what you want to do with them. It's pretty pointless to iterate through the keys, although it will do exactly what you need - give you a long list of stuff you then need to, um, understand, and then process to achieve your end goal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I want to get collection of controls that describe issue. For example issue can use customfields, so I can get
ComponentAccessor.getCustomFieldManager().getCustomFieldObjects(issue)
But how I could do that with default set of controls?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's not clear what you want to achieve. If you want to get the data from Jira you can use any of the APIs, REST or SOAP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.