Populating Change Task Short Description with values from a Change Form field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2017 08:25 AM
I have a Record Producer that captures all the details for a standard change. Once submitted the Record Producer activates a Workflow that generates a series of change Tasks, based on the content of fields.
Using this approach, how do I insert the value of a field directly into the Short Description of a Change Task. For example, I raise a change to install software and the name of the client (MyCompany PLC) is captured on the Record Producer in the field Client. The workflow will generate a Change Task. I would like the change Task to have a Short Description of "Install software for MyCompany PLC"
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2017 08:32 AM
What are the field names from the parent Change Request?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2017 08:38 AM
I have quite a few but in this case let's say the fields are on the change_request table and are called u_client_name and u_database_id. So the workflow would generate Change Task and I want the Short description to read "Set up client - <u_client_name> with id: <database_id>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2017 08:43 AM
So remember that 'current' in the workflow in this case is the Change Request.
So at the task level, you'll need to go under 'Script' and check Advanced.
Then script would be something like:
task.short_description = "Set up client - " + current.parent.u_client_name + " with id: " + current.parent.database_id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2017 11:29 AM
That's great, thanks. I have one field that is returning the sys_id instead of the Value. I guess it's a Reference field. How do I retrieve the Value?
Regards
Simon Bourne
07810 821707