How to update incident status in BMC Remedy via API?
In my project we've integrated BMC Remedy API to create incident with comment and attachment, filter incidents, get incident. All these works fine.
Now the requirement is to update status of an created incident to closed via API.
I am using nodejs
and express
.
Below is the snippet to test:
get('INC000000021072', true) // works fine
.then(inc => update(inc, { Status: 'Closed'})) // getting an error - Field ID specified is not found on this form.
.then(() => get('INC000000021072', true))
.then((inc) => console.log(inc));
Update function:
async function update(incident, values) {
console.log('update method #############',{ incident, values});
try{
const result = await query({
uri: `HPD:IncidentInterface/${incident.id}`,
method: 'PUT',
json: { values },
});
console.log(result); // never gets here due to error
} catch(error) { console.log(error) };
}
Update
I am able to update fields like submitter and description with request id. But not able to update status. While updating status with all the assign related field I am getting below error:
[
{
"messageType": "ERROR",
"messageText": null,
"messageAppendedText": "The Assigned Group fields are invalid. Use the menus for the Support Company, Support Organization, Assigned Group, and Assignee fields or the type ahead return function on the Assigned Group or Assignee fields to select this information.",
"messageNumber": 1291053
}
]
Is there a specific interface to use to update incident status ? Are there any other fields required to send to update incident status ?
node.js express remedy bmc
add a comment |
In my project we've integrated BMC Remedy API to create incident with comment and attachment, filter incidents, get incident. All these works fine.
Now the requirement is to update status of an created incident to closed via API.
I am using nodejs
and express
.
Below is the snippet to test:
get('INC000000021072', true) // works fine
.then(inc => update(inc, { Status: 'Closed'})) // getting an error - Field ID specified is not found on this form.
.then(() => get('INC000000021072', true))
.then((inc) => console.log(inc));
Update function:
async function update(incident, values) {
console.log('update method #############',{ incident, values});
try{
const result = await query({
uri: `HPD:IncidentInterface/${incident.id}`,
method: 'PUT',
json: { values },
});
console.log(result); // never gets here due to error
} catch(error) { console.log(error) };
}
Update
I am able to update fields like submitter and description with request id. But not able to update status. While updating status with all the assign related field I am getting below error:
[
{
"messageType": "ERROR",
"messageText": null,
"messageAppendedText": "The Assigned Group fields are invalid. Use the menus for the Support Company, Support Organization, Assigned Group, and Assignee fields or the type ahead return function on the Assigned Group or Assignee fields to select this information.",
"messageNumber": 1291053
}
]
Is there a specific interface to use to update incident status ? Are there any other fields required to send to update incident status ?
node.js express remedy bmc
add a comment |
In my project we've integrated BMC Remedy API to create incident with comment and attachment, filter incidents, get incident. All these works fine.
Now the requirement is to update status of an created incident to closed via API.
I am using nodejs
and express
.
Below is the snippet to test:
get('INC000000021072', true) // works fine
.then(inc => update(inc, { Status: 'Closed'})) // getting an error - Field ID specified is not found on this form.
.then(() => get('INC000000021072', true))
.then((inc) => console.log(inc));
Update function:
async function update(incident, values) {
console.log('update method #############',{ incident, values});
try{
const result = await query({
uri: `HPD:IncidentInterface/${incident.id}`,
method: 'PUT',
json: { values },
});
console.log(result); // never gets here due to error
} catch(error) { console.log(error) };
}
Update
I am able to update fields like submitter and description with request id. But not able to update status. While updating status with all the assign related field I am getting below error:
[
{
"messageType": "ERROR",
"messageText": null,
"messageAppendedText": "The Assigned Group fields are invalid. Use the menus for the Support Company, Support Organization, Assigned Group, and Assignee fields or the type ahead return function on the Assigned Group or Assignee fields to select this information.",
"messageNumber": 1291053
}
]
Is there a specific interface to use to update incident status ? Are there any other fields required to send to update incident status ?
node.js express remedy bmc
In my project we've integrated BMC Remedy API to create incident with comment and attachment, filter incidents, get incident. All these works fine.
Now the requirement is to update status of an created incident to closed via API.
I am using nodejs
and express
.
Below is the snippet to test:
get('INC000000021072', true) // works fine
.then(inc => update(inc, { Status: 'Closed'})) // getting an error - Field ID specified is not found on this form.
.then(() => get('INC000000021072', true))
.then((inc) => console.log(inc));
Update function:
async function update(incident, values) {
console.log('update method #############',{ incident, values});
try{
const result = await query({
uri: `HPD:IncidentInterface/${incident.id}`,
method: 'PUT',
json: { values },
});
console.log(result); // never gets here due to error
} catch(error) { console.log(error) };
}
Update
I am able to update fields like submitter and description with request id. But not able to update status. While updating status with all the assign related field I am getting below error:
[
{
"messageType": "ERROR",
"messageText": null,
"messageAppendedText": "The Assigned Group fields are invalid. Use the menus for the Support Company, Support Organization, Assigned Group, and Assignee fields or the type ahead return function on the Assigned Group or Assignee fields to select this information.",
"messageNumber": 1291053
}
]
Is there a specific interface to use to update incident status ? Are there any other fields required to send to update incident status ?
node.js express remedy bmc
node.js express remedy bmc
edited Nov 21 '18 at 18:43
Valay
asked Nov 21 '18 at 16:35
ValayValay
93821659
93821659
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Below solution works for me: Pass an incident and values to update. Also, incident request ID is mandatory to pass to update the incident.
async function update(incident, values) {
try{
await query({
uri: `HPD:IncidentInterface/${incident.requestId}`,
method: 'PUT',
json: { values },
});
} catch(error) { console.log(error) };
}
To update the status below fields are required to pass:
Status: "Closed",
'Assigned Group': "xxxxx",
Assignee: "xxxxx",
'Assignee Login ID': "xxxxx",
'Assigned Support Company': "xxxxx",
'Assigned Support Organization': "xxxxx",
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53416663%2fhow-to-update-incident-status-in-bmc-remedy-via-api%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Below solution works for me: Pass an incident and values to update. Also, incident request ID is mandatory to pass to update the incident.
async function update(incident, values) {
try{
await query({
uri: `HPD:IncidentInterface/${incident.requestId}`,
method: 'PUT',
json: { values },
});
} catch(error) { console.log(error) };
}
To update the status below fields are required to pass:
Status: "Closed",
'Assigned Group': "xxxxx",
Assignee: "xxxxx",
'Assignee Login ID': "xxxxx",
'Assigned Support Company': "xxxxx",
'Assigned Support Organization': "xxxxx",
add a comment |
Below solution works for me: Pass an incident and values to update. Also, incident request ID is mandatory to pass to update the incident.
async function update(incident, values) {
try{
await query({
uri: `HPD:IncidentInterface/${incident.requestId}`,
method: 'PUT',
json: { values },
});
} catch(error) { console.log(error) };
}
To update the status below fields are required to pass:
Status: "Closed",
'Assigned Group': "xxxxx",
Assignee: "xxxxx",
'Assignee Login ID': "xxxxx",
'Assigned Support Company': "xxxxx",
'Assigned Support Organization': "xxxxx",
add a comment |
Below solution works for me: Pass an incident and values to update. Also, incident request ID is mandatory to pass to update the incident.
async function update(incident, values) {
try{
await query({
uri: `HPD:IncidentInterface/${incident.requestId}`,
method: 'PUT',
json: { values },
});
} catch(error) { console.log(error) };
}
To update the status below fields are required to pass:
Status: "Closed",
'Assigned Group': "xxxxx",
Assignee: "xxxxx",
'Assignee Login ID': "xxxxx",
'Assigned Support Company': "xxxxx",
'Assigned Support Organization': "xxxxx",
Below solution works for me: Pass an incident and values to update. Also, incident request ID is mandatory to pass to update the incident.
async function update(incident, values) {
try{
await query({
uri: `HPD:IncidentInterface/${incident.requestId}`,
method: 'PUT',
json: { values },
});
} catch(error) { console.log(error) };
}
To update the status below fields are required to pass:
Status: "Closed",
'Assigned Group': "xxxxx",
Assignee: "xxxxx",
'Assignee Login ID': "xxxxx",
'Assigned Support Company': "xxxxx",
'Assigned Support Organization': "xxxxx",
answered Nov 21 '18 at 20:41
ValayValay
93821659
93821659
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53416663%2fhow-to-update-incident-status-in-bmc-remedy-via-api%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown