Forums

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

Custom field position in Jira Server

Dirk Dittert November 13, 2020

Hi,

I have created a custom field in my plugin and would like it to show up in a specific location (i.e. where Jira shows user information or date information). I remember that  this can be configured for each type of custom field. However, I don't seem to be able to find that information anymore.

Could someone point me in the right direction?

Thanks!

2 answers

1 accepted

0 votes
Answer accepted
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
November 13, 2020

Hi @Dirk Dittert you cannot configure where "user", "group", "date" and "datetime" fields are positioned.

All the other types of fields are positioned based on the Screen configuration (https://confluence.atlassian.com/adminjiraserver/defining-a-screen-938847288.html)

What is the type of your custom field?

Martin Bayer _MoroSystems_ s_r_o__
Community Champion
November 13, 2020

hi @Dirk Dittert , please let's try to hold the communication in one thread :). I tried to check Jira Source code and find out, which condition is used to display the field in user fields section and date fields section. I found out User/Group fields types implement com.atlassian.jira.issue.fields.UserField and date fields implement com.atlassian.jira.issue.fields.DateField.

I don't have chance to test it but could you give it a try and let me know if it worked?

I guess you know how to implement the interface but for eventual future readers...

import com.atlassian.jira.issue.fields.UserField;

public class MyCFType extends CalculatedCFType<String, String> implements UserField {

}

 

Dirk Dittert November 14, 2020

Thanks for your tip. Implementing UserField moves the field over to right hand side.

0 votes
Dirk Dittert November 13, 2020

Thanks for getting back at me. I am aware of the screen configuration. However, my question is not about configuration but about creating a new custom field type (i.e. Java code in a custom plugin). 

My custom field extends CalculatedCFType<String, String> and I want that field to show up to the right, where users are shown.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events