Hi Community,
I have a Parent Project P and a Child Project C.
In Project P, I have configured a Jira automation which clones the Parent issue to Child issue in Project C when a new Parent issue is created in Project P.
Challenge:
So, how can I bypass mandatory field validation when a new child issue is created in Project C by cloning the parent issue in Project P?
Please guide on how I can configure this by either scriptrunner, jira automation, jmwe app or any other configurations, it would be a great help.
Thanks
To make your field required during issue creation, you are currently using a Validator on the Crate transition. If that validator is a JMWE Field Required Validator, you can add a Conditional Validation script like this:
issue.key == null
This will skip validation during a Clone operation.
Hello @Digvijay Singh Gehlot
If the field is required for issues in Project C, then why would you want to bypass that? I'm sure there is a reason that the field is required, so you should be filling it in during the Automation Rule Clone Issue action.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your message.
I would like to provide more detail above my use-case below:
The custom field is a User Picker field and is present on Create Issue screen which is made Required by configuring a Validation on the Project C Workflow.
The usage of making this Required and keeping it as Empty at the time of creating the issue in Project C is that when Reporter creates the issue, he has to select a user in this custom field which then set the Assignee on the issue when it is created.
I want to pass a Condition either using scriptrunner, jmwe app, post function or jira automation, where when a new Parent issue is created in Project P then jira automation will clone the Parent issue and create a Child issue in Project C by passing the existing required field validation in Project C workflow.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Digvijay Singh Gehlot
Is the goal to create the issue in project C and leave the field blank, all via automation, or to have the automation create the issue and also set the field?
Can you please show us the Automation Rule you have constructed so far? I'm not sure that I have fully understood your intention, and seeing what you have might help clarify that.
@David Fischer made a good point also that the validator in the workflow may be customizable if you have a third party app that extends workflow capabilities.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.