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:
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";
}
}
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).
I suggest that you vote for this suggestion:
https://jira.atlassian.com/browse/JPOSERVER-1661
Best,
Kim
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.