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

Conditional fields #361

Open
wyardley opened this issue Sep 8, 2022 · 3 comments
Open

Conditional fields #361

wyardley opened this issue Sep 8, 2022 · 3 comments
Labels
backlog Identified as a backlog item, often combined with low-priority and help-wanted labels

Comments

@wyardley
Copy link
Contributor

wyardley commented Sep 8, 2022

Describe Request:

Kind of a question, kind of a feature request.
With the old style templates, it was possible to have certain fields only show up if they're set (e.g., mentions). I can't think of a way to do this with the new setup, but is there any way (either using something builtin to Slack templates, or in the orb) to allow us to have a field that will only show up if it's set / used (for example, mentions)? Otherwise, the template gets cluttered with fields when they're not in use

Examples:

Supporting Documentation Links:

@KyleTryon
Copy link
Contributor

I think we could figure out something for this. A "sanitize" function of sorts could take in a template, use JQ to remove keys with empty values, and output the modified config.

@wyardley
Copy link
Contributor Author

wyardley commented Sep 9, 2022

That would be amazing. I think the existing custom params wouldn’t work, but that would, possibly.

@KyleTryon KyleTryon added the backlog Identified as a backlog item, often combined with low-priority and help-wanted labels label Dec 6, 2022
@mayank0202
Copy link

Its done now so we can close this i guess @KyleTryon @wyardley

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Identified as a backlog item, often combined with low-priority and help-wanted labels
Projects
None yet
Development

No branches or pull requests

4 participants
@wyardley @KyleTryon @mayank0202 and others