Skip to content

Commit

Permalink
list more examples in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
as-op committed Jun 5, 2024
1 parent 53337f5 commit 33afc82
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions app/models/work_package/exports/macros/attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,21 @@ module WorkPackage::Exports
module Macros
# OpenProject attribute macros syntax
# Examples:
# workPackageLabel:1234:subject # Outputs work package label attribute "Subject" + help text
# workPackageValue:1234:subject # Outputs the actual subject of #1234
# workPackageLabel:subject # Outputs work package label attribute "Subject"
# workPackageLabel:1234:subject # Outputs work package label attribute "Subject"

# workPackageValue:subject # Outputs the subject of the current work package
# workPackageValue:1234:subject # Outputs the subject of #1234
# workPackageValue:"custom field name" # Outputs the custom field value of the current work package
# workPackageValue:1234:"custom field name" # Outputs the custom field value of #1234
#
# projectLabel:statusExplanation # Outputs current project label attribute "Status description" + help text
# projectValue:statusExplanation # Outputs current project value for "Status description"
# projectLabel:active # Outputs current project label attribute "active"
# projectLabel:1234:active # Outputs project label attribute "active"
# projectLabel:my-project-identifier:active # Outputs project label attribute "active"

# projectValue:active # Outputs current project value for "active"
# projectValue:1234:active # Outputs project with id 1234 value for "active"
# projectValue:my-project-identifier:active # Outputs project with identifier my-project-identifier value for "active"
class Attributes < OpenProject::TextFormatting::Matchers::RegexMatcher
DISABLED_PROJECT_RICH_TEXT_FIELDS = %i[description status_explanation status_description].freeze
DISABLED_WORK_PACKAGE_RICH_TEXT_FIELDS = %i[description].freeze
Expand Down

0 comments on commit 33afc82

Please sign in to comment.