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: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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