Hello!
Im having abit of issue getting a customfield value for an issue with values that are in the background e.g when there is a transition screen, i want to pull an existing customfield value that was entered in at the create screen visible in the background
I currently can get the value if the field is within the same transition screen, but i cant do this when the field is not in the transition screen:
document.getElementById("customfield_10000").value;
Any guidance?
Many thanks,
Pon
Hello,
First you have to get issue key using jira javascript API JIRA.Issue.getissuekey(). Then you can retrieve the value of the required field using Jira REST API /rest/api/2/issue/{issueIdOrKey}. Replace {issueIdOrKey} with the key retrieved by Jira.Issue.Getissuekey().
You can read more about retrieving issue key from javascript here
You can read more about jira rest api here
https://docs.atlassian.com/jira/REST/server/#api/2/issue-getIssue
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.