Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: moved attributes/keys into new page

...

...

...

Code Block
languagejs
{
  "text":"<eventType> in <spaceLink> by <userLink>",
  "attachments": [
    {
      "color": "#205081",
      "title": "<contentTitle>",
      "title_link": "<contentLink>",
      "text": "<contentBody>"
    }
  ]
}

...

...

<spaceLink>

...

<spaceKey>

<space.key>

...

<contentTitle>

...

<contentLink>

...

<contentBody; format="substring_2">

<contentBody; format="substring_2_4">

...

Use substring function to get string from index 2 to length

Use substring function to get string from index 2 to 4 (if string length <4 , it will get length)

...

<if(isNewPage>New Page <else> updated Page<endif>

<if(isNewBlogpost>New Blogpost <else> updated Blogpost<endif>

<if(isNewComment>New comment <else> updated comment<endif>

...

<userLink>

...

<userName>

...

<eventType>

...