Hi Team,
We need to list all project names and need to display same in Dashboard/Work ID screen as picklist/drop down custom file.
Here am able to get all project names as a single string by using scriptrunner plugin but want to display project names as list through picklist/dropdown.
Could you please help me to achieve this requirement.
You can't create new custom field types with Scriptrunner, only scripted fields.
Have you not tried the built-in "project picker" field?
Thanks Nic, But want to get all project details like project name, key project type by using REST API.
As of now getting all project details by using below code and getting output as a single line text but want to display output as a picklist/dropdown list.
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.project
def prList = ComponentAccessor.getProjectManager().getProjectObjects().name
For this requirement am trying with Custom picker but not able to publish project names in drop down, Could you check and let us know better solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think this is a simple field you can generate with code within SR, you're asking to select one thing while displaying another.
I think you'll need to write an app to do this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the info Nic, if possible could you share any suitable tool/plugin for my requirement.
Currently we are using two different versions of Scriptrunner plugin(Pre-Prod : 6.41.0, PROD : 6.47.0) and we are able to use the Custom Picker function in Pre PROD but same function not available in PROD, Could you please suggest how we can overcome this issue.
Thank you in advance!
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.