Is there way to use PropertySet in ScriptRunner for Jira Cloud?
I'd like to store some properties related to the Script Listeners in the DB so I'm curious is there anything in Jira Cloud that is similar to PropertySet and can be used in Script Listeners?
I'm aware of Entity Properties I'm looking into something that is not dependent on any Jira object (issue, project, etc), something like PropertySet does.
Thank you for your question.
I can confirm that ScriptRunner for Jira Cloud does not currently provide the functionality to store items in the database as Atlassian do not allow access to the database on cloud instances.
The reason for that is that the cloud version can only make changes to Jira via the Atlassian Rest API's as cloud does not have a Java API like the server version does. Also no rest API exists for storing items in the database.
This is described in more detail in the documentation page located here.
This means that you will need to use entity properties and to store the properties against a Jira objects such as an issue or a project.
If this answer has solved your issue can you please accept it in order to mark this answer as correct for users who are searching for a similar issue.
yes, we ended up using Entity Properties to store some data in the DB.
The problem is that we should always have an object in Jira to store data against it. It means if lets say project was deleted all the associated data would be deleted as well.
Unlike PropertySet, which allows to store data independently in properties db table.
Anyway, thank you, Kristian, for your prompt response!
We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...