I am trying to create a simple multi-picker drop down project picker field so that I can use it on the Service Desk portal. The purpose is that our team supports multiple changes across our entire instance, so requests need to identify the target project for the change.
We use scriptrunner, so my thought was to create a rest endpoint with a behavior that converts a text field accordingly. However, I cannot seem to find a good rest endpoint example that would pull a list of projects for me. I believe I have a couple of options also in that I could query the DB by pulling a list of project names or using an API to pull them, but I just can't get anything to work.
If anyone has an example that would use either a DB query or API, please let me know. Or, if there are other alternatives, I am open to suggestions.
Same problem for me here, I need a project picker in a service desk portal and for reasons I don't understand, Atlassian decided not to make the existing CF available in this context.
So, what's the best solution to get a project picker in a customer channel with Scriptrunner ?
=> it's ok to get all projects but I can't find any documentation on how to use contextual data in SQL query (name of issue reporter to limit the list to the projects the current user has access to for example)
=> this seems the most flexible solution but I can't find any doc/sample regarding the output type of the script according to the template you choose (a project picker template exists). The doc says :
Use the following table as a guideline for which one to use:
|Your script returns…|Template|Issue Panel|
|A project|Project Picker|main
But how can we return a single project to populate a project picker ?
Hello Insight users, As part of our (Mindville's) acquisition by Atlassian, our training team is looking to build some new Insight training materials. It would really helpful if you can ...
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