Forums

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

Run a Behaviour against all existing issues

Melanie Wu
Contributor
May 21, 2018

Hi,

I created a Behaviour to set the value for Field B to be dependent on the value of Field A. However, that Behaviour only runs and updates Field B when I go to an individual issue, click edit, and click update. Otherwise, Field B remains empty. Is there a way to simulate those actions so that I can get all existing issues to run the Behaviour and populate Field B based off the existing values of Field A without having to manually go into each issue?

 

Thanks!

 

2 answers

0 votes
Nic Brough -Adaptavist-
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.
May 23, 2018

You can't "run a behaviour" like this.  A behaviour is a set of instructions that are given to the user's browser when a screen is rendered.  The "dependency" is a thing that changes the way the screen behaves for the user.  There's nothing to "run" on the back end here.

You will need to translate it into a script you can run in the console.  One that can take a list of issues (or better, find them itself by running a search for "B is empty"), and re-apply the logical rules in the behaviour to update B.

0 votes
Alexey Matveev
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.
May 21, 2018

Hello,

You could use applications like selenium to imitate user actions. But I think it would be simpler to write a script in Script Console.

Melanie Wu
Contributor
May 23, 2018

Any tips on what a script in the Script Console would look like to trigger a Behaviour?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events