Record Producer

Darlene York
Tera Contributor

I have a record producer for creating an enhancement.  Its tied to an order guide.  There are 2 variable on the order guide and if you say yes to Is this enhancement part of a PMO initiative? If you say yes , you are required to complete Planview project name.  When this enhancement is submitted we create a story from the enhancement and close the enhancement.

 

I have a script that carries over the Description, Business Case and Planview Project name.  

 

Is there a way to script it where the Planview project name only shows in the description if the 'Is this enhancement part of a PMO initiative?' is yes, hide in the description if answer is no?

DarleneYork_0-1712155328783.pngDarleneYork_1-1712155341895.pngDarleneYork_2-1712155353052.png

 

1 ACCEPTED SOLUTION

Nick Parsons
Mega Sage

In your script, you can wrap the part that adds the plain view project name to the description in an if-statement that checks the value of the "Is this enhancement part of a PMO initiative", and only if it's set to "yes", should you append to your description:

if (producer.is_this_enhancement_part_of_a_pmo_initiative == "yes") {
  current.description += "\n\nPlanview project name - " + producer.planview_project_name;
}

View solution in original post

1 REPLY 1

Nick Parsons
Mega Sage

In your script, you can wrap the part that adds the plain view project name to the description in an if-statement that checks the value of the "Is this enhancement part of a PMO initiative", and only if it's set to "yes", should you append to your description:

if (producer.is_this_enhancement_part_of_a_pmo_initiative == "yes") {
  current.description += "\n\nPlanview project name - " + producer.planview_project_name;
}