I have created two custom fields which are required for some projects.
Success - Able to create Epic and prompted for custom field values as expected.
Success - Able to create Story and prompted for custom field value as expected.
Error - Unable to create Sub-task, two fields require value as expected, but also getting this error which is preventing me from creating subtask.
A subtask cannot be assigned to an epic.
Choose an epic to assign this issue to.
I have not changed any Epic Link related requirements.
How can I make the two custom fields required and be able to create subtasks?
Current Workaround: I've implemented the logic to requiring custom fields on transition of creating an issue or when completing it, but this requires making the transition requirements for every transition, otherwise I risk fields not being populated all the time. Hoping to find an easier solution.
This is helpful to know. I've implemented this and it solved the issue.
Only follow-up question now is that, using this approach, I cannot make make a field mandatory through field configuration at the sub-task level. I'd have to make it mandatory during transitions, is that correct?
No. You have separated out the field configurations so that issues and sub-tasks behave differently already. You can change the field configuration for sub-tasks to make a field mandatory.
This flag is for every step though. If a field is mandatory, you need to enter it on issue creation and you cannot blank it out at any point. If you want to do "field mandatory during a transition", you need to use "validators" in the workflow to say "must fill this in here"
@Nic Brough _Adaptavist_ Hello. I bumped into the same issue. Making a field required for Story makes it required for Sub-task as well. In my project's Field Configuration Scheme I have 2 field configurations: a Default Field configuration where my field is not required - this is for all unmapped issuetypes where Sub-task is included. The second Field configuration is associated with Story and it has my field required. What am I doing wrong? Thank you!
Nothing from what you've said. I would want to closely check that you really do have a field configuration scheme that says to use two separate field configurations for Story and Default, in this project.
I can't find a way to replicate this issue unless I'm sharing the field configurations across all issue types.
I have made some screenshots.
In Project settings I can see my field configuration scheme. I will call the second field configuration (the one I painted over) Blue Field Configuration:
When I click on Country required Field Configuration Scheme I get the 2 configurations and their mapped issue types:
When I expand the Default Field Configuration
Scroll down to Country, I can see Country is not required:
When I expand the Blue Field Configuration
Scroll down to Country, I can see Country is required:
Does this raise you any flag?
Thank you so much
When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events