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

Scriptrunner - Showing a screen on transition

Hello, everybody.
I'd like to show a cutom screen during a transition. The main point - I don't want to use Behaviors. Let's assume, that in our organization it is highly recomended to keep application changes in code, where it is possible, avoiding any customizations, that cannot be a part of code repository. 
Previously I used Power Scripts and it was a matter of one, barely several lines of code, but I'm unable to find either solution or tutorial regarding Scriptrunner. 
Any help will be welcome.

1 answer

0 votes

You can do this with a "transition screen" off the shelf, in the workflow.  You don't need any customisations or apps to do that.

Oh, thanks a lot/

But there's a problem - I want to show that screen only when some conditions are met. For example, when I have no issues within specific project, linked with current issue via specific link. 
E.g. when I say "in code" I mean just it ;)
I just can't believe, there's no way to show a screen using lines of code in Scriptrunner.

Apps can't get into the hard-coded flow of a workflow to inject anything., but they can inject things into the screens used.  It does do dynamic forms, but I don't know if they are of much use to you (I've not used them so far) - https://scriptrunner.adaptavist.com/latest/jira/dynamic-forms.html

However, I would try the easy way first:

Imagine you have a transition from Dev to Test.  If Alice runs it, they should see Screen-1, but if Bob runs it, they get Screen-2

  • Create the transition with Screen-1
  • Create a second, parallel transition with Screen-2
  • Protect the first one with a condition that says "only Alice can run this", and the second one with "only Bob"

That was a copy and paste of the simple example from my notes and works without scriptrunner.  In your case, you would probably use SR to provide conditions for "no issues in project A linked to B" and the inverse.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

How to log work and track time in Jira when a person is part of multiple teams

  The manager’s daily activities include a list of challenges to reach high levels of efficiency for their teams. Part of these challenges is related to how to deal with the worklog systems sin...

105 views 2 1
Read article

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