3
BMC Remedy의 헬프 데스크 제품에 티켓을 제출하려면 Java 클래스가 필요합니다.Java를 통해 BMC Remedy에서 티켓 만들기
누구나 이미이 작업을 수행했으며 코드 또는 경험을 공유하려는 경우 궁금합니다.
BMC Remedy의 헬프 데스크 제품에 티켓을 제출하려면 Java 클래스가 필요합니다.Java를 통해 BMC Remedy에서 티켓 만들기
누구나 이미이 작업을 수행했으며 코드 또는 경험을 공유하려는 경우 궁금합니다.
Geoff,
아래를 참조하십시오. 그러면 v7의 HPD : 헬프 데스크 (Help Desk) 양식에 베어 본 티켓이 만들어집니다. 희망이 도움이됩니다.
- 제이슨
/* This creates an entry in the form HPD:Help Desk, returns the Entry ID (not Incident Number) to the command line */
import com.bmc.arsys.api.*;
public class CreateEntry {
public static void main(String[] args) {
//Initialize a new ARServerUser object, this is the main object we are using for all actions
// for e.g. user=Demo, password=pwd, server=remedy, port=7100
ARServerUser context = new ARServerUser("Demo", "pwd", "", "","remedy",7100);
//A new entry we want to submit into remedy
Entry newEntry = new Entry();
//put the field values in there. (Integer fieldID, Value of field)
newEntry.put(7, new Value(0)); // Status<br>
newEntry.put(8, new Value("This record is created via Java API")); // Short Description<br>
newEntry.put(1000000163, new Value(4000)); // Impact - (High) 1000/2000/3000/4000 (Low)<br>
newEntry.put(1000000162, new Value(4000)); // Urgency - (High) 1000/2000/3000/4000 (Low)<br>
newEntry.put(1000000000, new Value("xyz")); // Description<br>
newEntry.put(1000000151, new Value("xyz")); // Details<br>
newEntry.put(1000000099, new Value(0)); // Service Type - 0/1/2/3<br>
newEntry.put(240001002, new Value("xyz")); // Product Name<br>
newEntry.put(200000003, new Value("xyz")); // Product Cat Tier 1<br>
newEntry.put(240001002, new Value("xyz")); // Product Cat Tier 2<br>
newEntry.put(200000005, new Value("xyz")); // Product Cat Tier 3<br>
newEntry.put(1000000063, new Value("xyz")); // Operational Cat Tier 1<br>
newEntry.put(1000000064, new Value("xyz")); // Operational Cat Tier 2<br>
newEntry.put(1000000217, new Value("xyz")); // Assigned Group<br>
newEntry.put(1000000054, new Value("xyz")); // Corporate ID<br>
newEntry.put(2, new Value("Demo"));<br>
try{
//And here we create the entry itself, printing out the EntryID we get back
String EntryId = context.createEntry("HPD:Help Desk", newEntry);
System.out.println("Request ID = "+EntryId);
}
catch(ARException arException){
arException.printStackTrace();
}
}
}
나는 당신이 (어쩌면 당신은 지금하지만) 아직 응답 언급 포인트가 부족하지 알고 있지만 클래스의 com.bmc.arsys.api 들어있는 JAR은 무엇인가 . * – geoffc
api 버전 7.0을 가정하면 arapi70.jar 및 arutil70.jar이 모두 classpath에 있어야합니다. 버전 7.0이 아니라면 그에 따라 파일 이름을 조정하십시오. 75 세, 63 세, 60 세가 될 수 있습니다. 둘 다 ARSystem 서버 기본 디렉토리에서 찾을 수 있습니다. –
방금 위의 버그를 발견했습니다. 변경
newEntry.put ( 240001002, 새 값 ("xyz"))); // 제품 Cat 2 단계 ~
newEntry.put (240001004, 새 값 ("xyz")); // Product Cat Tier 2 –