Hi guys, I have a question for you. Is it possible, or is there a way, either through a postfunction or Scriptrunner script, to force or overwrite a selected issue type when creating a linked issue and assign the issue type of the parent issue?
Example: I create an issue with an issue type “Incident” and then from that parent issue I decide to create a linked issue and select the issue type “Monitoring” on the creation screen. What we want is for the linked issue to be created with the issue type ‘Incident’ rather than “Monitoring,” which is the issue type of the parent issue.
In summary, what the customer is asking for is that regardless of the issue type selected when creating a linked issue, when it is created, it takes the issue type of the parent issue.
Hello @Angel Salazar
Can you clarify this point?
Are you looking to have the selected issue type forcibly changed before the issue is created, so it uses the screens/workflow of the desired type?
Or are you looking to have the issue type changed after the issue has been created?
If the latter, do you various work types all use the same workflows, screens, fields, etc. including validators, conditions, which fields are required, etc.?
While it may be possible to force the change of the work type after it has been created, there can be problems or unanticipated consequences when the source type and destination type don't use the same configuration. What if the destination type normally requires a field that is not required by the source? What if the person who created the source work type item is not normally allowed to create the destination work type?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.