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

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

Update vs Dedup features #78

Closed johnyoon-tempus closed 3 years ago

johnyoon-tempus commented 3 years ago

I was wondering if there was a functionality to automatically update an existing ticket, instead of generating a new one?

For example, if I had a ticket with the description "Hello," and wanted to update the ticket to say "Hello World"?

Similarly, is there a way to update the attached csv file?

guilhemmarchand commented 3 years ago

Hi @johnyoon-tempus

The purpose of the dedup feature is to add a comment to an existing Jira issue, rather than creating a new issue when the content is the same and the conditions are met.

The feature is documented here:

https://ta-jira-service-desk-simple-addon.readthedocs.io/en/latest/userguide.html#jira-dedup-behavior

So, in short, a new ticket wouldn't be created but it will add a comment which you can customize.

Updating the description is certainly possible but not really in the idea of a dedup thing.

I would say same for the CSV

johnyoon-tempus commented 3 years ago

Thanks for the response!

In that case, how would someone automatically update the CSV on an existing ticket?

guilhemmarchand commented 3 years ago

pleasure @johnyoon-tempus

So, may I ask why would you want to "update" the CSV in a JIRA, rather adding a new element? I may be wrong, but I would more see each element added to the ticket life cycle as something that should not be altered and can help understanding the context and taking decisions.

Altering something that was attached to the ticket would IMO defeat this instead.

Adding new content would be totally doable via REST (which is what does the Python backend), a custom command in Splunk for instance could perform a POST call. (an extension of the existing jirarest command for example)

johnyoon-tempus commented 3 years ago

@guilhemmarchand I agree that this is less than an ideal approach.

The main reason why I want to "update" the CSV in a JIRA, rather adding a new element is because the data payload is too large for the JIRA ticket comment area. So CSV seems to be the only way to contain the information in a ticket.

guilhemmarchand commented 3 years ago

@johnyoon-tempus

It would be possible to add (and not "update) a new CSV attachment to an existing ticket, either by:

Let me know if that makes sense.

guilhemmarchand commented 3 years ago

Closed for inactivity.