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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Published in Advanced Roadmaps

3 short videos to help you get started with Advanced Roadmaps

Hi community, I’m Roi, a product manager working on Advanced Roadmaps for Jira. While Advanced Roadmaps is a powerful tool to plan and track work at scale, we know it can be challenging to get star...

6,555 views 25 18
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you