User Stories - Add Metadata
The User Stories - Add Metadata functionality is used to deploy metadata from org to org.
To add metadata to a user story you must select an org credential. The Environment field will be automatically populated. Once the user story is saved, you can click on Add Metadata. This will load a new window where you can select components and save them.

When Apex code is added to a user story, the checkbox Has Apex Code will be automatically checked.
Troubleshooting
If you are unable to add metadata to a user story and a message saying 'Sending request' stays there and nothing happens follow the steps below:
- Make sure your user has CRED permissions on Push Topics and Copado Notification objects.
- On the developer console enter the following query: SELECT Id, Name from Attachment where ParentId = 'USER_STORY_RECORD_ID'.
- Delete the attachment with name: PROGRESS_STATUS_COPADO.
- Go back to the user story and try to add the metadata.