Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Login as administrator. Navigate to ⚙️ > ScriptRunner > Fields.

  2. Create a scripted field by navigating Create script field > custom script field, provide required details like Name, Description, etc.

  3. In the Script Area, apply the below script and modify based on duplicate field details.

    Code Block
    import com.atlassian.jira.component.ComponentAccessor
    import com.atlassian.jira.issue.CustomFieldManager
    import com.atlassian.jira.issue.fields.CustomField
    
    Long FIELD_ID = <Duplicate Field ID>	// replace with ID of actual Tempo "Team" field
    
    def cf = ComponentAccessor.customFieldManager.getCustomFieldObject(FIELD_ID)
    def cfType = cf.getCustomFieldType()
    def val = issue.getCustomFieldValue(cf)
    return val ? cfType.getDisplayedValue(val)?.getName() : null
    
  4. Navigate to Dataplane Reports > Reports > Create Report and add the scripted field in the Columns section.

    Image RemovedImage Added
  5. Run the Report to get the result.

    Image RemovedImage Added

Info
  • Make sure to install the ScriptRunner app to create Scripted field