Hello,
With script runner behaviour, i want to prefill a field compnents on jira. Is it possible?
Can i have support for writing the script please? I am new on scriptrunner please.
For example the field name is components and i want to prefilled it with example 1, example 2.
What i want to achieve is like this :
But don't know what script to add:
Thanks in advance
Hello,
Thanks for your help but i did what you said and it seems not appearing on the component field :( It's not prefilled
Are you sure that the Component you are setting exists? If the Component doesn't exist for that specific project with the exact name you are providing, it won't work. The reason I ask is that you are trying to set a Component of exemple1, but maybe it should be example1?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes the component exist. I mapped it to the issue type bug.
So when creating an issue type bug, I want the component field prefilled with example1 (for test)
Like the case of summary
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In your script, it appears that you are trying to add a Component with a name of exemple1 into the Component/s field, but there is no Component with this name.
Unless your script is different than the screenshot you have uploaded to this post.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Ah i understand. Thanks for your assist.
Can you help me with the script to achieve my goal like on the screenshot please?
Thanks in advance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Take a look at my post from May 1st. You'll just need to update the script to reference the correct Component name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your script is correct, but you just need to put it in the Initialiser, not the Field script.
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.