Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Create a custom field to display "Related Epics" Edited

 I have created an issue type "Initiative". My projects and hence portfolio has a hierarchy, something like...  Initiative->Epic->"All other standard issue types"->Sub-task.

 

I want a custom field on my "Initiative" default screen that reads -> Related Epics. This custom field can/should be a multi-line field that has provides a List of issue keys and their corresponding status and priority. It should be similar to the attachment.

I've used the Atlas SDK to and this is my first meager attempt at this field. It should look similar to the following:

Screen Shot 2017-08-01 at 11.15.41 PM.png

Below is my code so far, any guidance would be appreciated:

 

@Scanned
public class RelatedEpicsField extends GenericTextCFType {
private static final Logger LOG = Logger.getLogger(RelatedEpicsField.class.getName());
private final JiraAuthenticationContext jiraAuthenticationContext;

public RelatedEpicsField(@ComponentImport CustomFieldValuePersister customFieldValuePersister, @ComponentImport GenericConfigManager genericConfigManager, @ComponentImport TextFieldCharacterLengthValidator textFieldCharacterLengthValidator, @ComponentImport JiraAuthenticationContext jiraAuthenticationContext) {
super(customFieldValuePersister, genericConfigManager, textFieldCharacterLengthValidator, jiraAuthenticationContext);
this.jiraAuthenticationContext = jiraAuthenticationContext;
}


public String getSingularObjectFromString(
final String string)
throws FieldValidationException
{
ApplicationUser applicationUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser();
LOG.info("Here is the object: " + applicationUser.getDisplayName());
CustomField customField = ComponentAccessor.getFieldManager().getCustomField("rel");
LOG.warning("Custom field is " + customField.getFieldName());

return "Hello World";
}

}

 

1 answer

0 votes
Kim Wall Atlassian Team Aug 22, 2017

Hi JJ!

By default, if you look at an Initiative in JIRA (full issue view) it'll show you a list of child issues, but that list does not include the priority and status like other related issues do (i.e. issues in epic, linked issues). 

Child Issues.png

I suggest that you vote for this suggestion: 

https://jira.atlassian.com/browse/JPOSERVER-1661

Best,

Kim

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