Skip to content
This repository was archived by the owner on May 27, 2024. It is now read-only.
This repository was archived by the owner on May 27, 2024. It is now read-only.

Add data_source support so Dialog Options will be dynamic #29

@ghost

Description

Mattermost has data_source field which can be users and channels. We can add one more option which is script. If script is defined at data_source field. OpsTool can execute script to populate options. Script requirements:

  1. Opstool need to pass all environment variables to the script and arguments if defined.
  2. Script should return json array of options.

Sample Json Output

[
  {
    "text": "Option Text",
    "value" "Option Value 1"
  },
  {
    "text": "Option Text 2",
    "value" "Option Value 2"
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions