Specifically, I want to automatically create Issue A when another issue (Issue B) transitions to Status C. During the creation of Issue A, the automation should copy data from Issue B into Issue A.
I’m currently using ScriptRunner to handle the logic. However, the automation creates Issue A first and only then populates the fields. Some of those fields are required, so Jira blocks the issue creation before the values can be copied over.
Is there a way to populate required fields at creation time (or otherwise work around this limitation) so that the issue can be created successfully?
You must use IssueInputParameters to collect all the data (including required fields) in one place before calling the create command.
Do not create the issue first and then try to set the values, as this will fail Jira's validation checks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.