I would like to split the process between the Create linked issue screen and the standard Create issue screen using Behaviour.
I have used the getFieldScreen() method.
However, both returned the same a Create issue screen name.
Is there a way to check whether the screen is the Create linked issue screen?
I really tried to accomplish this, but as Scriptrunners webpage describes, there is no possible way of doing what you are asking. As you have found for yourself, it always just returns the create screen even when using getFieldScreen().
"Behaviours function on the Create Issue, Update/Edit Issue, Assign Issue, and Workflow Transition screens.
On the View Issue screen, trying to edit a field with a behaviour launches the Edit Issue screen, instead of the normal inline editor.
Behaviours do not work on the Move Issue screen. They also do not work for any bulk issue operations, or any issue edits that bypass the UI such as the REST API and other ScriptRunner scripts."
Dear @Mathis Hellensberg
Thank you for your answer.
As you said, I found the description on the following page.
As I thought, it seems impossible...
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