Forums

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

How to get list of Linked issue keys based linked issue custom field value?

Suresh
November 9, 2017

Hi Team,
On current issue.
I have a field called 'Liked Issue Keys' and it should display only linked issue keys with comma separated values based on linked issues custom fieldvalue(check box-A)= Yes.

Where were linked issues (custom field )checkbox = Yes, then the 'Linked Issue Keys' should only show those issuekeys.

Another custom field(check box-B)  on current issue, should be checked automatically if 'Linked Issue Keys' !=null and if it is null and automatically unselect the checkbox-B.

Regards,

Suresh

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
Adrien Low _ServiceRocket_
Community Champion
December 6, 2022

Hello @Marcela Maslanova ,

Perhaps you can try the below code:-

for(def i: getFieldScreen().getTabs()) {
for(def j: i.getFieldScreenLayoutItems()){
getFieldById(j.getFieldId()).setHidden(true)
}
}

The code above will hide all fields available on the screen.

Hope this helps.

Regards.

Marcela Maslanova
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 6, 2022

Awesome and so easy! It does work and mask everything with error, but nevermind that. I can hide only some tabs.

btw do you have any idea why some fields refused to be hidden? I already found out that some are special and need to be accessed by Id, not by name. Nevertheless I'm unable to hide for example Sprint.

TAGS
AUG Leaders

Atlassian Community Events