Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,380
Community Members
 
Community Events
165
Community Groups

How to set values for a hidden field in Jira

Edited

Hi,

 

I have a situation where I need to copy value from a field which Is hidden from all Create/Edit/view Screens.

Here Is an example 

I have 3 fields, Assignee , Field -2 , Field -3, 

when ever ;;workflow transits from open -> In progress then assignee value copies* to Field -2,

and when Inprogress --> done Field -3 gets* the value from Assignee. etc.

when Done --> Open Reporter field copies* the value from Field -3 

*Using Postfunction "Copy field value"

For some reason I don`t want to show Field -2 and Field -3 on Create/Edit/View Screen.

In Field Configuration Scheme when I hide the Fields. Their value set to NULL so above logic not working.

 

Any suggestion on this how a field can be used even though It`s hidden.

Thanks, 

sudheer

 

2 answers

1 accepted

3 votes
Answer accepted

Hello,

You can achieve this by not putting the Field -2 and Field -3 customfields on your screens. Customfields don't need to be on the screen in order to update them via postfunction. Even if they are not on the screens (which means they will be hidden from your users), copy field value postfunction will run and update the fields. I just tested it to be certainly sure and it works like that. You can easily test it, too. Hope it helps.

Regards,

Like # people like this
0 votes
Tarun Sapra Community Leader Sep 20, 2018

Hello @Sudheer Kumar Vempala

Can you please share the business reason behind your requirement, i.e. you want to hide the fields on the issue screens but you still want to populate them with values?

Also an hidden field should be present on view screen, it's not required at all on the create en edit screen.

@Tarun Sapra I came across this community post and have a similar need for a hidden field. The ticket that is being created from an outside program and the field is not intended to be edited from JIRA only the outside data source connected to the system. Please let me know if you have any suggestions. 

@Santi did you find a solution?

Suggest an answer

Log in or Sign up to answer
TAGS

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