Cannot find NumberCFType class when developing plugin with Atlassian SDK

In a java file of my plugin I could not figure out how to correctly import the class NumberCFType

import com.atlassian.jira.issue.customfields.impl.NumberCFType;

I got error when I run atlas-run

cannot find symbol

symbol : class NumberCFType

location: package com.atlassian.jira.issue.customfields.impl

However import com.atlassian.jira.issue.customfields.impl.TextCFType; works for me.

I use the lastest SDK with JIRA 5.1.8

2 answers

1 accepted

This widget could not be displayed.

Does you pom import the jira-core api's, note: This is not normally recommended, but may be required eg when migrating a plugin originally developed against JIRA 4.x ?


This widget could not be displayed.

In order to avoid jira-core I guess I will have to use the AbstractSingleCFType instead of NumberCFType. As I know nothing about java I would appreciate if someone can help rewrite this code below

public class UniqueIssueId extends NumberCFType {
    public UniqueIssueId(CustomFieldValuePersister customFieldValuePersister,
            DoubleConverter doubleConverter,
            GenericConfigManager genericConfigManager) {
        super(customFieldValuePersister, doubleConverter, genericConfigManager);

    public Double getValueFromIssue(CustomField field, Issue issue) {
        return issue.getId().doubleValue();

with AbstractSingleCFType

public class UniqueIssueId extends AbstractSingleCFType {

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

143 views 16 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you