Forums

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

how I can add automation for hide field on screen?

Natalia Ozhigova January 12, 2021

Hi everyone!

I would like add some automation to my project. If I change one field the another field changed too, but the second field should be absent on the screen.  Can I do it, and how can I do it if yes? 

Because now if the field absent on the screen I have an error.

 

 

2 answers

1 accepted

0 votes
Answer accepted
Mirek
Community Champion
January 12, 2021

Hi @Natalia Ozhigova ,

Not sure if I understand the requirement.. You want to change value of one field but another field that should be hidden would also be changed in the background?

What type of project are you using? Next-Gen or Classic?

Do you have any plugins expect what is build in?

Natalia Ozhigova January 12, 2021

Yes, if it's posible. The second field automatically changed in the background depending on first one.

I don't have any plugin, use classic project

Mirek
Community Champion
January 12, 2021

You can look at Automation - https://support.atlassian.com/jira-core-cloud/docs/automation-triggers/

Maybe Field Value Changed is a initial trigger that you can use to develop what you are looking for..

Natalia Ozhigova January 12, 2021

Yes, I did it. But if I  apply the rule, it'll work only when both fields on the screen. So I want that nobody can see second field, and can change only first, but the second is changed automatically depending on the first. So I understand, it's impossible. 

Thank you, Mirek

Mirek
Community Champion
January 13, 2021

Hi @Natalia Ozhigova ,

Hmm.. Let me do a quick test so that we can check if we are thinking in the same way :)

I have a simple rule created in Automation to set value of a "Hidden Field" to Option A (there is also Option B available)..

 

automation_01.png

 

So I created an issue and had my field on the screen to show that is having a value set to Option B (and Priority Highest)

automation_02.png

 

Then I remove Hidden Field from all screens so it is actually hidden in the UI ...

automation_03.png

 

Changing the priority to Lowest and showing (adding back) the field on the screen again later gives me this result..

automation_04.png

 

So it looks like it is working. Value is changed in the background no matter if we see the field on the screen (Create/View/Edit) .

Like Natalia Ozhigova likes this
Natalia Ozhigova January 17, 2021

Thank you for reply, I've just hidden field in different way. It should be hidden on issue layout tab, then everything work. 

2 votes
John Funk
Community Champion
January 12, 2021

Hi Natalia,

It is not possible to have field level security in Jira Cloud. Meaning that you can't hide and unhide fields based on some type of action. Either the field is on the screen or it is not - and for all users. 

The only flexibility is that you can have different fields on the Create screen, Edit screen, and View screen if you want. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events