create HR task through HR template
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2022 03:47 AM
Hi All,
We have created HR task through HR template under HR case. Our requirement is to add some information to the HR task description. I have added but it is not working.
An Initiate Transfer case has been opened for ${opened_for} // HR case opened for.
This is the request of Case Number: ${number} //HR case number
For any further details go to Link : Tool Link // Added URL
can we take data dynamically in that way or any other way ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2022 04:12 AM
Hello,
I don't think you can dynamically bring in variables or field values in HR template.
They are just meant to assign static values to field on Case form.
I tried calling a script include in description filed on HR template form like below
javascript:mySI name().my function name();
But it did not work.
So i would suggest create HR Matching rule on HR Task table and give your condition over there in Applies to tab for HR task table and you can find script section .
In that section you can code and populate description
Please accept the solution if it helps you and close the thread this might help others too
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2022 04:33 AM
Hi Mohith,
HR task is created for reward manager. we need to add some contents in description of task.
Can we shows it HR matching rule ?
For case number will be there and one URL should be there. How to use HR matching rule?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2022 04:40 AM
So you need to Type in HR matching rules in navigation and create a new record
where you can put table as HR task and condition as some "Assignment is some xyz group" which should be same as assignment group on HR task that you are creating
and in script section write code like below
current.description = "HR Case Number:"+current.parent.number+"/n"+"<a href=/sn_hr_core_case.do&sys_id="+current.parent+"Link For HR case</a>"
Please try this and let me know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2022 05:18 AM