I am needing to add validation to the clone action in Jira Cloud. jira:actionValidator SHOULD work, but according to Jira action validator (Preview) the only thing that works is workItemTypeChanged. I’m not entirely certain that’s actually an action, though.
Has anyone been able to properly validate any actions? If not, anyone have any suggestions?!
Hi @SydneyODell – Welcome to the community!
Unfortunately, I don’t have experience with the Jira action validator, and so hopefully someone else answers that part of your question.
I can say from experience that you can indirectly validate the Clone action by validating the Create transition in an item’s workflow.
So, if you’re lucky, the workItemTypeChanged action might trigger when an issue is created. (I have no idea if it does.) In that case, your initial plan might work.
But if it doesn’t, you might be able to design a workaround solution that involves adding a Jira workflow validator (off-the-shelf or Forge-based) to the Create transition on relevant workflows.
Of course, I have no context about the solution you are building, and so this workaround might make zero sense for your situation. Just sharing it in case it helps.