Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Tempo Teams find ID of Team easily using JQuery

Matthew Beda November 30, 2018
if (AJS.$('#customfield_11401-val a').text().indexOf("[") <= -1 && AJS.$('#customfield_11401-val a').length) {
var attr = $('#customfield_11401-val a').attr('href');
// For some browsers, `attr` is undefined; for others, `attr` is false. Check for both.
if (typeof attr !== typeof undefined && attr !== false) {
var TeamID = AJS.$('#customfield_11401-val a').attr('href').split('=')[1]
var TText = AJS.$('#customfield_11401-val a').text();
AJS.$('#customfield_11401-val a').text(TText + ' [' + TeamID + ']')
}
}

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events