문제 해결됨(고급)
이 고급 예제에서는 문제가 종결될 때마다 라이브 피드에서 자동 메시지를 생성하는 테이블 알림을 보여줍니다.
또한 할당된 사용자에 대한 메시지를 추가하고 문제 기록 대신 할당 그룹 프로파일의 메시지를 게시합니다.
- 테이블: 문제 [problem]
- 활성: 확인란을 선택합니다.
- 업데이트: 확인란을 선택합니다.
- 라이브 피드에 게시: 확인란을 선택합니다.
- 조건: [문제 상태] [다음과 같음] [종결됨/해결됨]
- 설명: 문제 해결됨
- 메시지:
Problem ${number} - ${short_description} has been resolved. ${fixedByMsg} - 스크립트 앞에:
//cancel if we didn't just change the problem state if ( !changedFields. contains ( "problem_state" ) ) answer = false ; //if we have an assigned_to value add a comment about who it was //create a new variable fixedByMsg that we can access from the message fixedByMsg = "" ; if ( !current. assigned_to. nil ( ) ) fixedByMsg = " Thank you " + current. assigned_to. getDisplayValue ( ) ; //make the message appear to come from the assignment group if we have one if ( !current. assignment_group. nil ( ) ) profileSource = current. assignment_group. getRefRecord ( ) ; //need GlideRecord object그림 1. 문제 해결 메시지 예시