Forums

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

customField.setAllowInlineEdit(false) is not working in Behaviour

Dan27
Contributor
June 29, 2020

Hello,

 

I want to 'read only' field fixVersion in Jira.

In edit screen in is working okay, But in view screen it is not read only and users can edit it.

I tried to use this intialiser without success:

def customField = getFieldByName("Fix Version/s")
customField.setAllowInlineEdit(false)

 

What am I doing wrong?

Thank you,

Daniel

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
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 Champions.
November 9, 2021

Enable the "fragment locator" (see the link in the fragment maintenance screen)  to see where elements can be injected. In this case, this reference may help: https://developer.atlassian.com/server/jira/platform/issue-view-ui-locations/

I found that a weight of 200 will place the websection just before the description and a weight of 201 will put it after.

As far as what you put in that web section, that's up to you. You just have a to build some HTML. 

I'd recommend using the groovy xml markup builder.

Then use the various jira java api fetch the information about the current issue that you want to display.

You are entirely in charge of the styling. But you can leverage classes present in the AUI 

TAGS
AUG Leaders

Atlassian Community Events