Add support for other entity type tokens

Created on 21 May 2025, 5 months ago

Problem/Motivation

This issue is inspired by the work in ✨ Add node / entity tokens in the token browser Fixed . That issue added support for node tokens, but was merged before token support for other entities was added.

At the moment, if your workflow relates to non-nodes, you will not be able to utilize tokens.

Steps to reproduce

Ensure you have the token module enabled
Add a workflow for media items
Add a notification for that workflow
Note that you do not have access to [media] tokens in the token browser

Proposed resolution

Re-work the notification form so that when you select a workflow the form refreshes not just with the transition states, but also the token browser has tokens available for all the entity types that workflow applies to.

Remaining tasks

None

User interface changes

The entire form refreshes with AJAX when selecting a workflow, rather than just the transitions field.

API changes

None

Data model changes

None

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States owenbush Denver, CO

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @owenbush
  • Merge request !28Update the form to support entity tokens β†’ (Open) created by owenbush
  • Pipeline finished with Canceled
    5 months ago
    Total: 93s
    #503213
  • πŸ‡ΊπŸ‡ΈUnited States owenbush Denver, CO

    Opened the MR, I added tests to ensure that media tokens also work.

  • Pipeline finished with Success
    5 months ago
    Total: 221s
    #503214
  • Pipeline finished with Success
    5 months ago
    Total: 157s
    #503223
  • Status changed to Needs review 8 days ago
Production build 0.71.5 2024