My project is setup as a company-managed project, which I am making a custom workflow.
Right now when I transition a task to done (note, this transition is set to be allowed from any status), I have a couple of validators that are checked. Which will stop the user from making the transition, if specific data is missing.
This task is linked to an epic, in which I have an automation rule watching a field, so that when the field is changed to a specific value, it will trigger an automation rule to close the task to done.
It works when all the validators are met. However, the problem is that, if the validators are not met, the automation cannot close out the task. It will just error out and Jira automation would just send me an error stating error transitioning issues.
I was wondering if there was a way to go around this so that the validators are not checked when automation moves a ticket because when the automation rule kicks in, the task should be transation to done regardless of the validators' state.
What am I missing here? Is this possible? Thank you for the help!
You will need to find or write a bit of code to do this. But I have a couple of sneaky ideas:
ScriptRunner provides "web fragments" tied to scripts or built in functions. If you have that App, you could insert a web fragment that links to "new sub-task" in quite a few places
My preferred trick - the sub-task panel has a + button to add a new sub-task to an issue. This is ideal, but, the panel only appears when you have at least one sub-task. But you can make it show permanently, by adding this to <jira-home>/jira-config.properties
jira.view.issue.show.quicksubtask.when.no.subtasks=true
and then restart. The properties file might not exist, it's only created when you need to move away from the defaults. If you don't have one, just add it. It's plain text and should have the same ownership and permissions as all the other files in that directory.
I am assuming that you are talking about the buttons used to transition issue through a workflow. This can be done by updating the workflow or creating a new workflow and associating it with tasks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi, no, I'm talking about the "view" screen, i want to creat a button for create directly sub-task.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.