Hello.
How can I programmatically get value of some standard field by name? For example, "assignee", or "description".
I know, that I can use
issue.getAssignee()
but I don't know exact field, I know it in runtime.
Thanks in advance.
Try this.
CustomField cField = customFieldManager.getCustomFieldObjectByName("name"); String value = issue.getCustomFieldValue(cField);
So, I can work with built in field (assignee, summary) as with custom fields via customFieldManager?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I might have misunderstood but the above is for custom fields only. Everything else, you already know the methods right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I'm writting a plugin. I have a field name as a String, also I got some issue. I want to get value of that field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
are you writing a plugin ? did you mean issue creation/editing by runtime ?
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.