User Requirement Could you plz provide code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2024 09:29 AM
- Create a new UI Action on Change Request - Create Task
- This button should be visible only in New/Assess state and to the Assignee of the ticket.
- When user clicks on Create Task, user should be redirected to new Change Task form and below fields should be copied from Change Request to Change Task:
- Configuration Item
- Short Description
- Description
- Assignment Group
- Assigned To - If there is already an active Change Task for the same Configuration Item, stay on the Change Request form and display an Error Message - "Change Task is already active for the same Configuration Item".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2024 07:35 AM
From the Below code what changes do I need to make to fulfill my requirement? Actually, I planned to do by server-side script only. from the above script I struck at URL Part I'm trying to use action.setRedirectURL(); instead of window href can you use that redirect URL method. to complete the requirement.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2024 05:23 PM
Hi @maheshchokkara window.location.href is a client side method and it will not work on server side, you can use the below to redirect
put this after line 39
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2024 08:48 PM
Thanks its working but one was not working in my code if you see in my requirement 4th point!
- If there is already an active Change Task for the same Configuration Item, stay on the Change Request form and display an Error Message - "Change Task is already active for the same Configuration Item". already I did some changes but it's not working can you please guide what changes do I need to do.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2024 05:30 PM
Hi @maheshchokkara here is the example, you can adjust your code accordingly
action.setRedirectURL(chgTask1);
Harish