0

In Polarion, I have created an java class using IFormExtension . I would like to set a customfield. When i do it i get an error

Caused by: java.lang.UnsupportedOperationException: Modifications are prohibited in read only transaction.

how to set a write transction and do workitem.save(), Thank you

1 Answers1

0

You should run your modification code within the write transaction. Something like this:

TransactionalExecutor.executeInWriteTransaction(transaction -> updateWorkItem())
Antoine
  • 1,393
  • 4
  • 20
  • 26