Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Atlasteam, Jira, plugin JsIncluder. Set component. For https://atlasteam.ru/?p=1925
function setComponent(component) {
var val = AJS.$("#components").val();
val = val ? val : []
val.push(component.id)
AJS.$("#components").val(val);
AJS.$("#components-textarea").val(component.name).blur();
}
var components = [
{
id: 10000,
name: 'component 1'
},
{
id: 10001,
name: 'component 2'
}
]
components.forEach(function (component) {
setComponent(component)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.