- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2024 07:45 AM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2024 04:53 PM
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;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2024 04:53 PM
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;
}