Forums

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

Structure API for Data Center

Marko Slijepčević January 29, 2024

Greetings everyone,

I have a question regarding the Structure API. I want to get an overview of Structures that haven’t been used for a while and found this documentation. The provided code, when run inside the Scriptrunner console, displays all Structures available and does not distinguish those that haven't been used over X Months.
I have additionally analyzed the API documentation, especially that about the StructurePropertyService Interface, but wasn’t able to come up with a solution.

has anyone searched for the same, and had the same problem? or maybe found a solution by querying the database?

The Jira version is Data Center 9.12.2, Structure version is 9.2.0

Thank you and kind regards,
Marko

1 answer

1 accepted

0 votes
Answer accepted
Stepan Kholodov _Tempo_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 29, 2024

Hello @Marko Dev 

We can confirm that the script is operational, and it should return a list of structures that weren't opened in the last 3 months. This information is based on the 'Last opened' column shown at Structure | Manage Structures | All

Please note - this statistic is only gathered in Structure version 8.2 and higher, i.e., there are no records of when structures were accessed on older versions. So, to get useful results in the script, you should have the Structure of a relevant version installed for at least 3+ months; otherwise, there won't be any records.

If the script's results don't match the last opened column or if you have other questions about Structure, please reach out to us directly at our support portal and we'll get back to you shortly.

Best regards,
Stepan
Tempo (the Structure app vendor)


Suggest an answer

Log in or Sign up to answer