The CreatorCon Call for Content is officially open! Get started here.

Creating Epics & Stories from Demand with more fields?

Uncle Rob
Kilo Patron

OOB it looks like Epics and Stories don't inherit much from the Demand (short description only as far as I can tell).
I'd like to inherit a lot more, including assignment group, description, and some of the dates.

 

The CreateEpic UI Action calls this function from AgileDemandConversionUtil

The function seems to be open to a parameter called preFields, however the UI Action calling it never sends it as a parameter.

 

RobertFedoruk_2-1725971707674.png

 

Has anyone successfully added more fields to the Epic/Story output from a Demand?
If so, how much did you have to mess with OOB code?

 

1 REPLY 1

Bhavisha Keshwa
Tera Contributor

Hi Rob,

 

Yes this actually works very well.

I wanted to pass some fields to be copied at story level from demand as well, I used the below code:

 

function convertToStory() {
    var prefields=[
{"fieldName": "description", "fieldValue": current.description} ,
{"fieldName": "top_portfolio", "fieldValue": current.portfolio}
];
    var agileDemandConversion = new AgileDemandConversion();
    agileDemandConversion.convertDemandAndUpdateReferenceField(current,prefields);
    action.setRedirectURL(current);
}
 
Hope this helps.