Hi!
I have a bit of a weird issue.
We are getting automated emails from our HCM system to our service desk regarding new hires / change of position / terminated hires. Ideally I would've liked to use our REST API for this to have much more control of all the fields set etc, but the HCM system is cloud based and our JIRA is on prem and they couldnt seem to figure that out.
So what i've done is have them create 3 different email templates for these kinds of emails, with the subject being static, like: "New Hire: <name of new hire>, Change of Position: <name of employee> etc.
Our service desk maps all incoming emails as incidents, as it should, but these specific emails are requests, so to avoid support having to do a move and change issue type, i've created automations for this using the JIRA Automation add-on.
It basically checks if summary contains either of those static subjects ("New Hire:" etc) then edits issue type, customer request type and a few custom fields.
For some reason this often makes the ticket un-transitionable and our servicedesk needs to move the ticket to another issue type and back to fix it.
I fixed this by changing the automation and instead of editing the issue type (which is not possible to do via normal GUI, you have to move it) it actually clones the original ticket and sets the issue type on the new ticket to "Service Request", then deletes the old one.
But, this created another issue. Seems like the resolved date is set on these tickets as they are created, even though they've never been resolved or entered a resolution state (created date and resolved date is identical).
Why is this and how can I fix this? Ideally a fix to the first issue with not being able to transition the ticket would be the best, but either is ok 