Skip to content

Commit

Permalink
Merge pull request #64 from reportportal/rc/5.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
APiankouski authored Jul 29, 2024
2 parents 5a71b16 + aff10d1 commit 3c77541
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ jobs:
- name: Release with Gradle
id: release
run: |
./gradlew release -PreleaseMode --exclude-task checkUpdateNeeded -Pscripts.version=${{env.SCRIPTS_VERSION}} -Pbom.version=${{env.BOM_VERSION}} \
./gradlew release -PreleaseMode -Pscripts.version=${{env.SCRIPTS_VERSION}} -Pbom.version=${{env.BOM_VERSION}} \
-PgithubUserName=${{env.GH_USER_NAME}} -PgithubToken=${{secrets.GITHUB_TOKEN}} \
-PgpgPassphrase=${{secrets.GPG_PASSPHRASE}} -PgpgPrivateKey="${{secrets.GPG_PRIVATE_KEY}}"
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.atlassian.jira.rest.client.api.JiraRestClient;
import com.atlassian.jira.rest.client.api.domain.*;
import com.atlassian.jira.rest.client.api.domain.input.ComplexIssueInputFieldValue;
import com.atlassian.jira.rest.client.api.domain.input.FieldInput;
import com.atlassian.jira.rest.client.api.domain.input.IssueInput;
import com.atlassian.jira.rest.client.api.domain.input.IssueInputBuilder;
import com.epam.ta.reportportal.commons.Predicates;
Expand Down Expand Up @@ -60,6 +61,8 @@ public class JIRATicketUtils {
// Field format from UI calendar control
public static final String JIRA_FORMAT = "yyyy-MM-dd";

public static final String PARENT_FIELD_ID = "parent";

private JIRATicketUtils() {
}

Expand Down Expand Up @@ -140,6 +143,13 @@ public static IssueInput toIssueInput(JiraRestClient client, Project jiraProject
if (one.getId().equalsIgnoreCase(IssueFieldId.LINKS_FIELD.id)) {
continue;
}
if (one.getId().equalsIgnoreCase(PARENT_FIELD_ID)) {
if (!one.getValue().isEmpty()) {
issueInputBuilder.setFieldInput(new FieldInput(PARENT_FIELD_ID,
ComplexIssueInputFieldValue.with("key", one.getValue().get(0))));
}
continue;
}

// Arrays and fields with 'allowedValues' handler
if (null != cimFieldInfo.getAllowedValues()) {
Expand Down

0 comments on commit 3c77541

Please sign in to comment.