Hi,
i want to set the user picker field "customer" in a subtask. The subtask was created in a transition of the parentissue. The value of the user picker "customer" is set in the maintask during the same transition and I want to copy this value to the cf in the subtask. I've tried the following code:
def trans = transientVars["issue"] def valueCustomer = trans.getCustomFieldValue(ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("customer")) def cf = customFieldManager.getCustomFieldObjects(issue).find {it.name == 'Customer'} issue.setCustomFieldValue(cf, valueCustomer)
Best regards,
Louisa
First of all you're getting "customer", then later "Customer". It should be throwing an NPE with your code, check the logs.
Thanks for your fast response! I'm sorry that was a stupid mistake! however, it still does not work :/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you check the logs?
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.