The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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