# Feature DREAM-765 - Automatically extend workPackage and project attribute macros

Project: Stream Design System
Status: specified
URL: https://community.openproject.org/work_packages/DREAM-765

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Product Backlog |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Frontend components and Primer design system, Modules and project features / Text editor / CKEditor5, Modules and project features / Project attributes, Administration / Custom fields |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | OP Dev Dream Team |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**Acceptance criteria**

  - For project attribute and work package attribute macros:
    
      - If the macro is added via the macro insert dialog, automatically resolve the syntax to an actual macro (with real values)
    
      - If the user types manually and does not use auto-completele (or autocomplete is not available), do not resolve whilst in edit mode; only resolve on save
    
      - *\[open\] If we are able get a list of the available project attributes for a selected project or available work package attributes for a selected WP ID:*
        
          - As the user manually types the macro, provide code-completiion-like auto-complete (eg. typing `projectValue:{id}:` will display an autocomplete that displays available project attributes for the selected project) 
            
              - Once the user selects a value, resolve the syntax to the actual macro
