Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

In-Line Edit for JIRA shows ProjectID's and not the name Edited

Hi,

I hope this question finds all of you well.

I created a custom single line text field called Targeted Project(s). Since there was not free way of having a multiselect project field, I used the behaviours addOn to make this custom field behave that way.

The behaviour code is as follows:

import com.atlassian.jira.component.ComponentAccessor

def projectManager = ComponentAccessor.getProjectManager()
def projectList = projectManager.getProjects()

getFieldByName("Targeted Project(s)").convertToMultiSelect()
getFieldByName("Targeted Project(s)").setFieldOptions(projectList.findAll {it.name})

And this works great on the EDIT screen as per below:

image.png

However on the in-line edit screen, its displaying the IDs of the projects and not the names. Is there a way to have this display the names instead of the IDs

image.png

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you