How to use the selected variable list value in a user macro

Allie van den Berg September 17, 2018

I have the following user macro:

 

## @noparams
<script>

$( "input[name='variableValues.RELEASENAME']" ).change(function(){
console.log($(this).val());

$("form[name='filltemplateform']").find("input[name='title']").val("Release notes" + " " + $(this).val())
})

$( "input[name='variableValues.RELEASENUMBER']" ).change(function(){
console.log($(this).val());

$("form[name='filltemplateform']").find("input[name='title']").val($("form[name='filltemplateform']").find("input[name='title']").val() + " : " + $(this).val())
})
</script>

 

But now I want to use the data from the selected variable list. So, RELEASENAME is a list.

The value I get now is ":1.0.0" instead of  "Example release:1.0.0".

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events