Hello
Is there any example how I can get profield field and it's value of specific project in JAVA API
I checked documentation http://profields.javadoc.deiser.com/4.2/, however I can't understand how can I get these parameters.
My code is
import com.deiser.jira.profields.api.projectvalue.ProfieldsFieldValue; ... ProfieldsField myField=profieldsField.getProfieldsField();
Eclipse shows me that "profieldsField cannot be resolved" and doesn't offer any method after "profieldsField."
Could you help me to find correct syntax for this?
Thank you in advance,
Fyodor
Community moderators have prevented the ability to post new answers.
Hi Fjodors,
In the code snippet you posted profieldsField variable is not defined so the eclipse shows the error.
I guess that what you need to do is to retrieve instance of the ProjectValueService and call getValuesForProject:
ProjectValueService pvs = ComponentAccessor.getOSGiComponentInstanceOfType(ProjectValueService.class);
Also have a look at FieldService.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.