Confluence has been updated to version 6.15.9

You can synchronize custom fields between HP QC/ALM and JIRA Instances.

In HP QC/ALM defects, custom fields are called user fields. 

Available types of the user fields in HP QC/ALM defect:

  • String
  • Multi-line text field
  • Number field
  • Date 
  • User List 
  • Lookup list

There are always two main configuration points: a source side that sends data and a destination side that receives data.

Source Side 

The sending side needs to add the custom field to the replica in Data Filter.

 

HP QC/ALM Instance

Add the code the Data Filter to send defect custom field value to the JIRA Instance.

//BG_USER_02 is a defect custom field name
replica.customKeys."BG_USER_02" = defect.customFields."BG_USER_02".value

JIRA Instance

Add the code the Data Filter to send issue custom field value to the HP QC/ALM Instance.

Check how to sync custom fields on Jira for more details.

//Address is an issue text custom field name
replica.customFields."Address" = issue.customFields."Address"

Note

You must use the correct custom field name to get the defect custom field value.


Destination side 

The receiving side will get a replica and process it on the Create/Change processors. For simple fields, you can just assign the value of the received custom field to the local one.

JIRA Instance

The replica.customKeys is set by the remote Instance. The issue.customFields can give any customField in Jira.

This is an example of how to assign the value of the received HP QC/ALM custom field to the local JIRA custom field.

//"HP Custom field" is jira custom field name
issue.customFields."HP Custom field".value = replica.customKeys."BG_USER_02"

HP QC/ALM Instance

The replica.customKeys is set by the Jira Instance. The defect.customFields can give any customField in HP QC/ALM.

This is an example of how to assign the value of the received Jira custom field to the local HP QC/ALM custom field.

//add value from the jira custom field into the defect custom field with name BG_USER_02
defect.customFields."BG_USER_02".value = replica.customFields."jira custom field name".value

See Also