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.
are you writing a plugin ? did you mean issue creation/editing by runtime ?
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.
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?
I might have misunderstood but the above is for custom fields only. Everything else, you already know the methods right?
It looks like you're new here. Sign in or register to get started.