Forums

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

Scriptrunner Behavior ignored when issue updated via agile board

Jeanne Howe
Contributor
October 31, 2022

We have set up a behavior to hide a field until the Flagged field is selected. Once the Flagged field is selected, the behavior displays (unhides) the hidden field and marks it as a required field.

 

When editing an issue via the Edit screen:

Click Edit from the issue

Select the Flagged field

Results: New field is displayed and marked with a red * and you must enter a value

This is the expected behavior

 

When editing an issue via an agile board:

Go to the agile board

Select the issue

Detail view is displayed to the right of the board

From the eclipse dropdown menu, select Add Flag

Results: Flag is added to the issue. New field IS NOT displayed. Issue is updated successfully

 

 

1 answer

1 accepted

0 votes
Answer accepted
PD Sheehan
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.
October 31, 2022

I think this is expected given the documented behaviour limitations.

You can't control whether a field is visible or not on the view screen.

Also, presumably, the newly unhidden field would be empty after first adding a flag. Empty fields by default are never displayed in the view screen (which is what you see in the display panel in the agile board).

If you subsequently attempt to edit your issue, those fields should be visible as expected.

Jeanne Howe
Contributor
November 1, 2022

@PD Sheehan 

Thank you for the response. I have seen the behavior limitations document and was hoping that, in this scenario, this statement would hold true:

"On the View Issue screen, trying to edit a field with a behaviour launches the Edit Issue screen, instead of the normal inline editor."

PD Sheehan
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.
November 1, 2022

That statement refers to the "in-line" edit functionality where you over over a field in the issue view and click on the pencil icon. In this case, clicking that icon opens the full edit screen instead of activating the in-line edit mode.

Adding a flag via the add-flag functionality is not prevented. Same with bulk edits via the issue navigators. 

Jeanne Howe
Contributor
November 2, 2022

Thank you @PD Sheehan 

Suggest an answer

Log in or Sign up to answer