Forums

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

Create and save ObjectHistoryBean

Georg June 14, 2023

I'm working with Jira using Groovy scripts and I'm trying to modify a HistoryBean object in Jira Insight plugin. In some answer, it was suggested to call 'save' after modifying an object in certain cases. However, in my case, I couldn't find any methods like 'save()' or 'update()' to save the changes made to a newly created HistoryBean object.

Question: How can I save the changes made to a HistoryBean object in Jira using Groovy scripts? Are there any methods available for saving the modified object?

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Champion
January 6, 2024

Hi @Georg

Could you please clarify why do you need to use the HistoryBean?

The simpler approach I would recommend would be to use ScriptRunner's HAPI feature for Assets.

Please refer to this ScriptRunner Documentation for more information.

Thank you and Kind regards,

Ram

TAGS
AUG Leaders

Atlassian Community Events