Profields 4.3.0 Java API


I'm trying to get a list of Project objects with a given Profield value using Profield Java API (see method 

getProjectList) in example below.

For example, the list of project whose Profield called "country" is equals to "Brasil".


Has anybody implemented any feature using Java API?

I have some problems configuring my pom.xml because of some required dependecies from profields-4.3.0.jar

Thank you,



import com.atlassian.jira.project.Project;
import com.atlassian.jira.user.ApplicationUser;
import com.deiser.jira.profields.api.projectfilter.ProjectQuery;
import com.deiser.jira.profields.api.projectfilter.QueryExpressionBuilderFactory;
import com.deiser.jira.profields.api.projectvalue.ProfieldsFieldValue;
import com.deiser.jira.profields.api.projectvalue.ProjectValueService;
public class TestImpl  {
	private ProjectValueService projectValueService;
	private QueryExpressionBuilderFactory queryExpressionBuilderFactory;
	public ProjectRoleAssignerImpl(ProjectValueService projectValueService,
	        QueryExpressionBuilderFactory queryExpressionBuilderFactory) {
		this.projectValueService = projectValueService;
		this.queryExpressionBuilderFactory = queryExpressionBuilderFactory;

	public void getProjectList(String pql, ApplicationUser user) {
		QueryExpressionBuilder queryExprBuilder = queryExpressionBuilderFactory.getBuilder();
		queryExprBuilder.fromPql(user, pql);
		ProjectQuery projectQuery = queryExprBuilder.getQuery(user);
		QueryExpressionClause query = null;
		List<ProfieldsFieldValue> projectValues = projectValueService.getProjectsByQuery(projectQuery);
		for (ProfieldsFieldValue projectValue : projectValues) {
			Project project = projectValue.getProject();
			System.out.println("ProjectRoleAssignerImpl.getProjectList():Project=" + project.getKey());



2 answers

I also get an empty collection for projectValueService.getValuesForProject(). I create a ticket on deiser issue tracker.

This bug was fied into version 4.3.4.

How did u resolved this please let me know

geting below error 

[ERROR] Failed to execute goal on project synch-onejira-plugin: Could not resolve dependencies for project com.go2group.jira.plugin:synch-onejira-plugin:atlassian-plugin:2.0.0: Could not find artifact com.deiser:profields:jar:4.1.3 in atlassian-public (

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Jira

Updates to give you visibility into what's coming in Jira Server and Data Center

Hello, Community! My name is Gosia and I'm a Product Manager on Jira Server and Data Center here at Atlassian. Since 2002 when we launched our public issue tracker, jira.atlass...

688 views 1 15
Read article

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