I want to insert a js variable into json (to show a message on slack). I have tested this :
"fields":[
{
"title": "Reported by:",
"value": "'+ user + '",
"short": "false"
},
but it doesn't work and show me this :
Reported by:
'+ user +'
Thanks you !
It looks to me like you should be doing something like:
"value": "'" + user + "'",
Before user was still part of the string expression.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With