Hi Team,
after i click on transition which creates a new issuetype in the same project and it copies parent issue single select custom field to this, then I wanted to set parent Single select custom field value to None in post function. please help me as i got stuck here.
Thanks in advance
Harish Kumar
Hi @Harish_Kumar,
You may need to use below code in your script to clear select list field value, place it after copy/clone script
def cfSelect = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Select List Field")
issue.setCustomFieldValue(cfSelect, null)
Hope this helps
BR,
Leo
Hi @Leo , Already In the transition i have a code which creates a new issuetype within the same project with the custom field value copied to it. at this point i need the custom field set to null after copied to new issuetype.
The code you mentioned is clearing the value to null , but this is applied to new issue. I need to apply this to parent issue , after the creation of new issue.
Thankyou
Harish Kumar
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.
@Leo Hi, I used built in script "clone issue script" . I used mine in a separate post function script console. the code you posted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Harish_Kumar,
Is it on the same transition where you added clone function? is your parent/original issue holds the value still? also can you check the order of the of function?
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.