Expose technical contacts via API
T
Thomas Johnson
I'd like to be able to programmatically retrieve the Technical Contact(s) for a given Installation.
Currently, it's only possible to retrieve a list of users and their installs, but not their role as technical contact.
Ideas would be adding a
technical_contact[]
field to the Installation
object, or an extra endpoint for /installs/{install_id}/contacts
As a less-friendly alternative, it'd be handy to have a way to export the Technical Contacts list as CSV.
T
Thomas Johnson
A less-less friendly option is to use Chrome Dev Tools scrape the contents from the Technical Contacts UI:
acc = '';
$('#DataTables_Table_0 tr')
.slice(1)
.each(function(idx) {
tds = $(this).find('td');
acc += `${tds.get(1).textContent},${tds.get(2).textContent},${tds.get(3).textContent}\n`;
});
copy(acc);
The results should now be in your paste buffer.