Hi All,
I would like to use this script in a scripted custom field. I would like to get a list of the names (notproject keys!) of the current project in our Jira instance.
Another request would be a bit difficult(?): we also need the list of names of the current space names (not personal space!) of our Confluence.
Can you please suggest?
Thanks in advance,
Rumi
Try the below script (taken from the script runner docs) , but i am not sure how it will display the values . were you able to create a simple multiselect field which displays few options in the list ?
import com.atlassian.jira.ComponentManager def projectManager = ComponentManager.getInstance().getProjectManager() def result=""; for(p in projectManager.projects) { result += "$p.name"; } return result;
Great :) ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would use the REST API to get all projects accessible for the currently logged in user. For more info, please see the following documentation: http://docs.atlassian.com/jira/REST/latest/#id160865
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.