Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support sending JSON #23

Open
robertjahn opened this issue Apr 21, 2019 · 1 comment
Open

Support sending JSON #23

robertjahn opened this issue Apr 21, 2019 · 1 comment

Comments

@robertjahn
Copy link

I have tried to send JSON with the Send Chat Message attachment section or the Upload File option. Perhaps there is just some syntax required, but what happens is I just see the left bracket of the json that I specify as an argument. I have tried with surrounding in triple back-ticks ``` too.

@robertjahn
Copy link
Author

robertjahn commented Apr 21, 2019

Note that I can get this to works for making an attachment, but I would like to view the json in the slack message so that I dont have to open the attachment In script task do this

set my json contents into a variable called Json - then save to a file in the release
Out-File -FilePath "$(System.DefaultWorkingDirectory)\mydata.json" -InputObject $Json
in the slack task upload argument
$(System.DefaultWorkingDirectory)/mydata.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant