Skip to content

Commit

Permalink
fix: fcli ssc issue-template update: Fix 'issue template not found'…
Browse files Browse the repository at this point in the history
… error when updating issue template name (fixes #181)
  • Loading branch information
rsenden committed Dec 14, 2022
1 parent f8ebad6 commit a6002b1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import com.fortify.cli.common.util.StringUtils;
import com.fortify.cli.ssc.issue_template.cli.mixin.SSCIssueTemplateResolverMixin;
import com.fortify.cli.ssc.issue_template.helper.SSCIssueTemplateDescriptor;
import com.fortify.cli.ssc.issue_template.helper.SSCIssueTemplateHelper;
import com.fortify.cli.ssc.output.cli.cmd.AbstractSSCOutputCommand;
import com.fortify.cli.ssc.output.cli.mixin.SSCOutputHelperMixins;
import com.fortify.cli.ssc.rest.SSCUrls;
Expand Down Expand Up @@ -63,7 +64,7 @@ public JsonNode getJsonNode(UnirestInstance unirest) {
if ( setAsDefault ) { updateData.put("defaultTemplate", true); }
unirest.put(SSCUrls.ISSUE_TEMPLATE(descriptor.getId()))
.body(updateData).asObject(JsonNode.class).getBody();
return issueTemplateResolver.getIssueTemplateDescriptor(unirest).asJsonNode();
return new SSCIssueTemplateHelper(unirest).getDescriptorByNameOrId(descriptor.getId(), true).asJsonNode();
}

@Override
Expand Down

0 comments on commit a6002b1

Please sign in to comment.