function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SamuelRobertSamuelRobert 

How to transfer file from Salesforce Case object to Rally Defects

Hi iam trying to transfer file from Salesforce Case object to Rally defect.

Currently we have S-control to create Defect in rally by one click in the Case record detail page.

It should also take attachment from case to Rally.

Please assist is this possible.
SalesFORCE_enFORCErSalesFORCE_enFORCEr
Can you please share the code?
SamuelRobertSamuelRobert
Its a Managed one 
JeffreyStevensJeffreyStevens
Not sure what Rally is or Rally defect, and I'm not sure what you mean by "file".  IF you mean how to transfer an ATTACHMENT from one sObject to a different sObject - then ...

get the ATTACHMENT object record, and change the ParentId field from the Case record to the Rally defect, record ID, update the Attachment record.

Quite a few IF's out that though.

 
SamuelRobertSamuelRobert
Hi Jeff,

We have a Case record which has a section Rally in that when we click on the Create Artifact it will create a Defect in the Rally (It is a Scrum Agile similar to Jiira) Please find the screen shot below

User-added image

We also have a Attachment related list in the Case record detail page.
User-added image

The challenge is when we create Defect from the Rally section from 1st image, Few of the field values were taken from the Case record to Rally Defect Like Case Number,Priority,Description owner etc. Like wise we also need the Attachment from this Attachment section to be taken when a Defect is created from Case recod.

User-added image
The above image is the Rally Defect that created by onclicking the Create Artifacte from 1st Image.

Thank You,