Sync ALM Detected on Date field to jira custom field

Originally asked by SANDEEP ADE on 10 September 2019 (original question)


i am trying to map alm detected on date (system field) to jira custom date field

alm (sending )
replica.customFields.“Detected on Date” = defect.created

jira (receiving)
issue.customFields.“Detected on Date”.value = replica.customFields.“Detected on Date”.value

but its not working error is displayed.


Answer by SANDEEP ADE on 10 September 2019

i tried the below but it didn’t work.

replica.customFields."Detected on Date" = defect.created  
  
  
It seems defect.created is not the correct field name to be used   
  
i tried "detected-in-rcyc" but it says no such property  
  
  


Comments:

André Leroy-Beaulieu Castro commented on 10 September 2019

Hi Sandeep,

What version of Exalate for HPQCNode are you using? This system field is supported from release 4.4 onwards.

Thanks,

André

André Leroy-Beaulieu Castro commented on 11 September 2019

Hi Sandeep,

This will only work for you from Exlaate 4.4.2 and on, you are also getting an error because of you’re trying to save the value in a custom field, your outgoing (alm) should be:

replica.created = defect.created

Thanks,

André

SANDEEP ADE commented on 13 September 2019

We are on 4.4.1

Can you send link to the latest exalate version for ALM

Answer by Francis Martens (Exalate) on 10 September 2019

  • Are you working on Jira Cloud or Jira Server
  • In the outgoing sync, can you try instead of
replica.customFields."Detected on Date" = defect.created

use a customKey as in

replica.customKeys."Detected on Date" = defect.created
  • In the incoming sync, you have to make the same change
issue.customFields."Detected on Date".value = replica.customKeys."Detected on Date"

And let us know


Comments:

André Leroy-Beaulieu Castro commented on 10 September 2019

It’s possible that the name of the field is “detected-in-rcyc”.