Is it possible to send "@here" notification to a room via API?

latex March 12, 2018

Hello,

Something like this would be really great:

 data = {
'body': {
'version': 1,
'type': 'doc',
'content': [
{
'type': 'paragraph',
'content': [
{
'type': 'text',
'text': 'Hello folks!',
},
{
'type': 'mention',
'attrs': {
'text': '@here'
}
}
]
}
]
}
}

But it is not possible. If there is nothing like that, is it possible to query for people present in the room in order to mention them specifically (although it would not be exactly the same desired behaviour)?

Many thanks for any suggestion....

Vojtech

1 answer

1 accepted

2 votes
Answer accepted
Nágila Marques
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 16, 2018

Hi, 

How are you? I hope you are doing well :) 

Can you try to send @here mention using the example below:

{
    "type": "paragraph",
    "content": [
      {
        "type": "mention",
        "attrs": {
          "id": "here",
          "text": "@here",
          "accessLevel": "CONTAINER",
          "userType": "SPECIAL"
        }
      },
      {
        "type": "text",
        "text": " "
      }
    ]
  }
latex March 16, 2018

Hello,

I am fine, thank you. How are you?

Thank you for your answer. It's awesome.

Have a nice day!

Best Regards,

Vojtech

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events