This issue is definitely NOT a duplicate of JENKINS-32087, since it is about using a different type of credential and JENKINS-32087 is about setting the credential at job-level!
Since I am also really interested in using folder-level credentials to login to JIRA, I took the liberty of reopening this issue.