Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How to set the "Target Release" field in Java

Hi,

 

How can I set the "Target Release" field using the Atlassian Java API - jira-rest-java-client-core (v: 5.2.1) ?

This field within the UI to create an issue appears as a custom field

<div class="field-group" >
<label for="customfield_12311240">Target Release</label>
<select class=" select" id="customfield_12311240" name="customfield_12311240" data-remove-null-options="true">
<option value="-1" selected="selected">Unknown</option>
<optgroup label="Unreleased Versions">
<option value="12345960">2.3.0.GA</option>
<option value="12346085">2.2.8.GA</option>
<option value="12346388">2.1.15.GA</option>
</optgroup>
...
</select>
<div class="description">Target release this issue is proposed/approved to be solved in.</div>
</div>

 

We can create an IssueInputBuilder using the following code 

IssueRestClient cl = restClient.getIssueClient();

IssueInputBuilder iib = new IssueInputBuilder();
iib.setProjectKey("ENTSBT");
iib.setSummary(release.getTitle());

But now, How can we set the field "Target Release" ? Using "setFieldInput(new FieldInput(" ?

 

Regards

 

Charles

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events