It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Stride Custom Shell Script Bot - @all mention not working Edited

We had created an custom bot (Shell Script) that was integrated into Hip chat for monitoring purpose. Custom bot will notify every body using @all in specific rooms. Here is command we were using in Hip Chat ( “@all Bot Test” ) . It will invoke @all mentions command in respective rooms

However once we moved to stride , we are not able to figure our how to mention @all from the shell script. I have looked below guide already , however not able to find the command for @all . Any help is appreciated

https://developer.atlassian.com/cloud/stride/learning/mentioning-users/

2 answers

Hi Rajesh,

 

You may use the following ADF node to mention everyone in the conversation:

{
   "type": "mention",
   "attrs": {
     "id": "all",
     "text": "@all",
     "accessLevel": "CONTAINER",
     "userType": "SPECIAL"
  }
}

 

Regards,

Nick

Worked like a charm thanks a lot , much appreciated @Nick Turskyi

0 votes
???ℜ??? Atlassian Team May 30, 2018

@Rajesh Menon

I don't know how your shell script works exactly, but I can give you sample ADF messages that will make @all and @here work when posting a message to Stride. 

 

@all ADF Example

{
"version":1,
"type":"doc",
"content":[{
"type":"paragraph",
"content":[{
"type":"mention",
"attrs":{
"id":"all",
"text":"@all",
"accessLevel":"CONTAINER",
"userType":"SPECIAL"
}
}]
}]
}

 

@here ADF example

{
"version":1,
"type":"doc",
"content":[{
"type":"paragraph",
"content":[{
"type":"mention",
"attrs":{
"id":"here",
"text":"@here",
"accessLevel":"CONTAINER",
"userType":"SPECIAL"
}
}]
}]
}

 

Also, we have a great developer community forum for the Stride API where I monitor for questions like these and where other developers provide support. 

I hope this helps you move forward with your project. 

Worked like a charm thanks a lot , much appreciated @???ℜ???

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Stride

Stride and Hipchat Cloud have reached End of Life (updated)

All good things come to an end - thanks to all our customers and partners who have been along the Hipchat and Stride journey with us.  As of Feb 15th 2019, Hipchat Cloud and Stride have reached ...

2,421,864 views 26 26
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you