How-to activate the Metadata Viewer

You may want to show the phone number of the reporter directly on the issue

Step-by-step guide

  1. Value Configuration
    Go, as Project-Admin, into the project overview of the project of your choice (referenced as SampleProject) and select the Metadata tab.
    Enter the following data within the Edit Metadata Section:

    KeyValueGouphidden
    meta.view.labelContact Details
    true
    meta.viewphone
    true
    phone.labelReporter Phone
    true
    phone.value$metadataService.getMetadataValue($issue.reporter, 'phone')
    true
    phone.visibleToDevelopers

    true

  2. Open, as JIRA-Admin, the Profile page of an user of your choise, select the Metadata tab and click the "switch to admin interface" link.
    Enter the following data within the Edit Metadata Section:

    KeyValueGouphidden
    phone555-454-3422
    false

    The result:

  3. Enable the Metadata Viewer Module
    Open, as JIRA-Admin, the "Manage add-ons" Section and locate the Metadata for JIRA Plugin.
    Find the metadataViewerSection Module and enable it.
  4. Metadata Viewer in action
  5. If you want to you can add multiple values to the Metadata Viewer. Just add another metadata the way we added phone. (E.g. email.label, email.value & email.visibleTo)
    Then add this second item to the meta.view and seperate it from the first item with a semicolon. (E.g. phone;email)


Background Information for phone.value

You can use the following parameters within your velocity script:

issue (details: http://docs.atlassian.com/jira/latest/com/atlassian/jira/issue/Issue.html)
metadataService (provides the method: String/Double getMetadataValue(Object, String) e.g: $metadataService.getMetadataValue($issue.projectObject, 'accounting.hour.rate')