Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can you tell me how I would do this using Scriptrunner or Automation Rules?

Fidelidade JIRA Admin December 16, 2024

 

Hello everybody,

Hello community

 

I am faced with a challenge that was asked of me, which is the following: When faced with an impediment, the development team must add a Flag to the issue. But, when the Flag is added, 5 fields must be filled in, which could be through a pop up after placing the Flag. Can you tell me how I would do this using Scriptrunner or Automation Rules?

 

Emanuel Lima 

Thank you

BR

3 answers

3 accepted

0 votes
Answer accepted
Stephen_Lugton
Community Champion
December 17, 2024

Hi @Fidelidade JIRA Admin 

Unfortunately, the flag action doesn't count as a trigger for automations so you won't be able to bring up a popup by just setting the issue to flagged.

In fact, popups are treated in Jira as screens in the way that @Prachi Bolar showed, so if you want to bring up a data entry popup you'll need to use a screen and using screens is done by transitioning to another status.

From your answer to @David Freitez I'm wondering why you don't want to make a transition since having a simple pair of transitions the first of which goes from 'In Progress' (for example) to 'blocked' with a screen asking for Type of Block, Reason for Block & Date of Block, and the second of which goes back to In Progress when unblocked is a common way of dealing with blocked issues, indeed many people have a separate column on their board for blocked issues.  I see you've stated that this doesn't correspond to reality, but adding a flag is just another way of indicating a change in status.

Fidelidade JIRA Admin December 17, 2024

Hi Stephen,

Thank you for your considerations, in reality I don't see any other way to achieve this result other than with transition.
I will evaluate the best way to implement this, within the instructions you gave me here.

Thank you very much,
BR
Emanuel

0 votes
Answer accepted
Prachi Bolar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 16, 2024

Hi Team,

Welcome to community :) 

You can do the following 

Automation to flag the issue 

Screenshot 2024-12-17 at 11.42.32 AM.png

 

Now for the pop screen

- You may create a new screen 

Add a screen

  1. Select  > Issues.

  2. Click Screens > Add screen.

  3. Add a name and description that describes when this screen should be used. 

  4. Click Add.

 

Now in this screen you must had the 5 fields that are need to be filled

Now add this screen in the transition where they need to be filled, In my case it would be in progress, Publish the workflow

Screenshot 2024-12-17 at 11.45.39 AM.png

 

So here when a user transitions the issue to in progress automation will take care of flagging the issue and workflow of popping the fields 

Screenshot 2024-12-17 at 11.50.03 AM.png

 

Thank You,

Prachi

0 votes
Answer accepted
David Freitez
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 16, 2024

Hi @Fidelidade JIRA Admin ,

There are several options and it will depend on your current configuration and how you´d like to handle the situation, for instance:

You can have a Workflow Status called Flag,  and when you transition from any other status to it,  you´ll be requested the 5 fields which would be required in the workflow transition.

Let me know if it works for you or if you have another thing in mind regarding your initial configuration.

Regards,
David

Fidelidade JIRA Admin December 17, 2024

Hi Thank you for your quick reponse,

This way, I will be hostage to a transition to put the flag on the task. Maybe I didn't explain it right.
And in reality, that's not how it happens. What happens in my case is that an impediment is detected when I am faced with a situation that prevents me from continuing with development, and there is no transition. In short, I reach this conclusion after an analysis that makes me place a flag in the task, where I will be required to fill in these fields (Type of Block, Reason for Block, Date of Block).


Therefore, this solution you propose forces me to make a transition, which does not correspond to reality.
Is there another way to do this?

Thanks for answering me.
BR

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.12.16
TAGS
AUG Leaders

Atlassian Community Events