Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
function archiveOldReleases(dt) {
$('tr.project-config-version-released').each((idx, obj) => {
$obj = $(obj);
if (!$obj.hasClass('project-config-version-archived')) {
var rdate = $obj.attr('data-releasedate');
if (rdate && rdate < dt) {
type: 'PUT',
url: '/rest/api/2/version/' + $obj.attr('data-id'),
contentType: 'application/json',
data: JSON.stringify({
id: $obj.attr('data-id'),
archived: true,
expand: 'operations'

This comment has been minimized.

Copy link
Owner Author

@baverman baverman commented Sep 5, 2016

Run on versions page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment