Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Update field type 'Message Custom Field (for view)'

Edard_user
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 7, 2022

Hi community, 

 

I want to update a field type 'Message Custom Field (for view)', with groovy scripts.

 

Can you helpl me?

Thanks in advances

1 answer

0 votes
Pavel Junek
Community Champion
February 7, 2022

Hi Edard,

Your question is probably too general - what exactly do you need to do with the field?

For some Groovy examples, I recommend looking at https://library.adaptavist.com/ 

Pavel

Edard_user
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 7, 2022

Hi @Pavel Junek 

My question is for this:

 

def value = 'false'
def cf_nota = ComponentAccessor.getCustomFieldManager().getCustomFieldObject(18710L) //Nota
def val_nota = issue.getCustomFieldValue(cf_nota)
log.warn('Valor inicial-->'+val_nota)
cf_nota.updateValue(null,issue, new ModifiedValue(issue.getCustomFieldValue(cf_nota),value ),new DefaultIssueChangeHolder());

 

Because I can't for the type of field, in the custom field tat we use, we can change but in this case we can't.

 

Thanks

Pavel Junek
Community Champion
February 7, 2022

Oh, so unfortunately I can't help you in this case (I don't understand much of Groovy's script).

Like Edard_user likes this

Suggest an answer

Log in or Sign up to answer