Hi,
I'm looking for a way to add a my domain to the whitelist on the Jira server using Java API.
I've done some research and found:
InternalWhitelistManager
I've created this PoC:
@Named
public class WhitelistTestService{
private final InternalWhitelistManager internalWhitelistManager;
@Inject
public InstallService(@ComponentImport InternalWhitelistManager internalWhitelistManager ) {
this.internalWhitelistManager = internalWhitelistManager;
}
public void addAddress() {
String address = "https://example.page.net";
List<String> rules = new ArrayList<>(internalWhitelistManager.getRules());
rules.add(address);
internalWhitelistManager.updateRules(rules, internalWhitelistManager.isDisabled());
}
}
But the result is:
I need to add new domain and set type as Domain name and Allow incoming to true.
In documentation (link) I've found:
After I implemented this, only equals sign(=) changed type to Exact match.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.