How can I populate a case form priority value in a case task priority field when certain condition met?

The Matrix
Tera Contributor

Hii all,

when state changes to awaiting info and awaiting reason is internal resource at that scenario the Task (case_task) priority should populate with case priority so that information doesn't have to double handled. when I create a  Task (Case_Task) from a case form Related List UI Action (new button)

 

 

 

 

4 REPLIES 4

Mohith Devatte
Tera Sage
Tera Sage

Harish KM
Kilo Patron
Kilo Patron

Hi you can have before insert BR on HR Task table with the following 

Cond:

parent.state changesTO awaiting info AND

parent.awaitingreason is  internal resource

Script:

    current.priority = current.parent.priority;

Regards
Harish

state Awaiting info is a Case table (sn_customerservice_case) field value which is child table. when child table (sn_customerservice_case) form state is Awaiting info then I want to populate a priority on a Parent table which is sn_customerservice_task. When I write a BR on case task table how will i get a child table value to select in when to run condition?

 

@Siddharam Takali i have explained it clearly in the latest answer in your question below

https://community.servicenow.com/community?id=community_question&sys_id=1c8ba47b1bb81d10c552c8031d4b...

anyways you can do like below 

you can still do it using show related fields likebelow screenshots 

1) Type in show related fields 

find_real_file.png

2)Select parent-->task fields or case fields in your instance

find_real_file.png

3) Select state of it or type in state and select it 

find_real_file.png

4)You will be able to see changes to  find_real_file.png

please mark my answer correct if it helps you and also please close the other thread too 

https://community.servicenow.com/community?id=community_question&sys_id=1c8ba47b1bb81d10c552c8031d4b...