Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Kanban Board - Unable to update Epic

lapacquah.bryant
Contributor
April 5, 2023

I configured a Kanban Board to display Epics by using JQL - Filter.  The customer changed the status of Epic to Done however want to change back to Backlog.  

The Status changed to Backlog, however the Resolution remains Done.

How can I update Epic to not show Done as its resolution?

Note, we did not configure the Kanban Backlog function we are using Backlog Status.

Thank you.

Screenshot 2023-04-05 at 8.44.05 AM.png

1 answer

1 accepted

2 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 29, 2018

The [] are a string representation of the fact you've got an list of somethings back from the field, not a string.

Version pickers can hold many options, so your getCustomFieldValue is getting a list (often it'll be a list of one item), then just using "toString" outputs a converted value.

You should not convert it, but iterate over the values and use .getName() or whatever you need to pull out the data you're looking for.  If you can be absolutely sure it's only going to have one value, then just grab the first element from the list.

David
Contributor
May 21, 2019

Hey @Nic Brough -Adaptavist-, I'm looking to do just this. Can you give an example of it. If I use this:

issue.get("customfield_10002")*.name.flatten()

I get the value with brackets. There will always only be one value here, how can I iterate just the value using getName?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 21, 2019

If it always has one value only, you can be lazy.  Issue.get("customfield_10002")[0] will fetch the first element of the array.

David
Contributor
May 28, 2019

@Nic Brough -Adaptavist- Thanks for getting back to me, so I gave Issue.get("customfield_10002")[0] a try and it returns this:

CustomerOrganizationImpl{id=159, name=some company name}

I'm trying to get the name value without brackets. It appears the first element contains both the id and name.

David Harkins
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
June 9, 2021

Adding a reply to @David 

As I had the same issue and found a way to achieve it, though i was looking for the ID not the name.

change: value.id

to: value.name

import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.issue.fields.CustomField;

def value = issue.getCustomFieldValue(ComponentAccessor.getCustomFieldManager().getCustomFieldObject(10110));

def OrgID = value.id[0]
log.info("OrgID:" + OrgID)

return OrgID

Suggest an answer

Log in or Sign up to answer