Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to check whether the screen is the Create linked issue screen using Behaviour. [ScriptRunner] Edited

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?

2 answers

Hi @Shuz 

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.
https://scriptrunner.adaptavist.com/latest/jira/behaviours-overview.html#_screens

As I thought, it seems impossible...

@Shuz  Please accept my answer so others might find it :)

Test Comment

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Events near you