guilhemmarchand / TA-jira-service-desk-simple-addon

Atlasian JIRA add-on for Splunk alert actions
11 stars 9 forks source link

How to disable Jira Replay store temporary failures on Jira serive desk add-on #179

Open mavvm opened 9 months ago

mavvm commented 9 months ago

I was testing with Splunk Add-on for JIRA Atlassian Service Desk.

I am getting a big number in the Jira Replay store temporary failures as shown in the screenshot attached.

Anyone have idea that how can i disable this feature of replay from the add on ? Jira Add on

guilhemmarchand commented 9 months ago

Hi @mavvm

When ticket creation end up in the replay KVstore, this means that first the ticket creation failed. If you click on the single number this opens straight the KVstore transforms lookup.

If you like to cleanup the content, and therefore cancel re-trying to create these tickets, you can just do:

| outputlookup jira_failures_replay

The orchestration of the replay is handled by the following scheduled:

JIRA Service Desk - Resilient store Tracker

You can reduce the max number of attempts if you like to more rapidly set these to permanent failure.

mavvm commented 9 months ago

Hi @guilhemmarchand

Thanks for you prompt reply.

After doing the command | outputlookup jira_failures_replay i was able to clean the content.

Can you tell me from where can i reduce the max number of replay attempts ? Is it like some feature i can find from the dashboard ?

Regards,

mavvm commented 9 months ago

Hi @guilhemmarchand

I figured out how to change the Maximum attempts from scheduled report.

I have another question regarding passing the JIRA custom fields.

I was giving the one of the Custom field as below.

"customfield_10991":{\"value\": \"Micro-X\"}

But this is getting the error as:

HTTP Error=400, content={"errorMessages":[],"errors":{"customfield_10991":"Specify the value for TMTeam in an array of strings"}}" action_name="jira_service_desk" search_name="test alert"

Here, the field I am giving is TMTeam and the custom field id is "customfield_10991"

I tried multiple times by replacing the value with name and with TMTeam itself in custom field JSON mentioned above.

Regards,

guilhemmarchand commented 9 months ago

Hi @mavvm

Have you tried another format as shown here: https://ta-jira-service-desk-simple-addon.readthedocs.io/en/latest/userguide.html#jira-custom-fields

Likely it's expecting something like:

"customfield_10991":{"value": "Micro-X"}

Or

"customfield_10991":[{"value": "Micro-X"}]

Or

"customfield_10991":{"name": "Micro-X"}

And you shouldn't espace yourself the double quotes as the app will do it

mavvm commented 9 months ago

Dear @guilhemmarchand

I tried giving all the below mentioned values. But still getting the same error

"customfield_10991":{"value": "Micro-X"}

Or

"customfield_10991":[{"value": "Micro-X"}]

Or

"customfield_10991":{"name": "Micro-X"}

Or

"customfield_10991":[{"name": "Micro-X"}]

The error is: "errors":{"customfield_10991":"Specify the value for TMTeam in an array of strings"}}

In the error you can see TMTeam mentioned, this is the name of the field in JIRA.

Also tried the format mentioned in document as well. Do you know any other workaround for this ?