Quantcast
Channel: Active questions tagged atlassian-plugin-sdk - Stack Overflow
Viewing all articles
Browse latest Browse all 280

CreateValidationResults doesn't see customFieldValue

$
0
0

I am creating issue with atlassian jira plugin and want to add a custom field in it called customfield_111. When I run a validation with validateCreate then the result of class CreateValidationResult should have passed customField but it has not:

IssueInputParameters issueInputParameters = new IssueInputParametersImpl();

issueInputParameters
        .setProjectId(model.getProjectId())
        .setSummary(model.getSubjectBody())
        .setDescription(model.getMsgBody())
        .setReporterId(model.getUser().getKey())
        .setIssueTypeId(model.getIssueTypeId())
        .setComponentIds(Long.valueOf(11111))
        .addCustomFieldValue("customfield_111", "myvalue");


IssueService.CreateValidationResult createValidationResult = issueService.validateCreate(model.getUser(), issueInputParameters); 
// here the customfield_111 is null !!!

I have add a customfield111 in jira settings for issue as label text and I can manually create issue with that field but how can I do it automaticaly with the code?


Viewing all articles
Browse latest Browse all 280

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>