Integrating JSM with another Incident management system and attempting to keep comments and attachments in sync.
When adding an attachment, it appears to only triggered on Issue Commented.
It won't fire on Field value changed on Field attachment.
So, lines of text and files are comments in the view, yet attachments will show in the attachments section.
Next. Attachments are shown in a list {{issue.attachments) and comments in {{issue.comments}}
Issue: I only want to sync the other system if one or the other or both are entered.
Is there an easy way to see if there is a bit or flag that states it is new?
I'm thinking I might be able check the timestamp on the .last entry to see if it is within n number of seconds of now(). If true, then log it.
Thoughts?
Ok.
Smart Variable {{comment}} will show information regardless if just text /attachment or both.
However, there does seem to be a difference in what it puts in the text.
{{comment}} --> '[^577484336341.csv] Excel spreadsheet.'
but a JPG wil show
{{comment}} --> '!20230921.jpg|width=200,height=200! Both picture and comment.
Are the delimiters different for each file type? I guess I can find the first space char and go from there. Provided the filename doesn't have spaces. If nothing after the space, then they didn't type any words.
Does the delimiter '[' mean something different than '!' ?
(Hope I'm not frustrating y'all by thinking on here)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.