Hello,
I am using a scriptrunner behaviour to control the assignee field based on other fields. Is there any way to add those fields to assign screen.
Regards,
Seif,
Hi Seifallah,
Unfortunately, the Assign button is an action and cannot be modified as mentioned on the community post here.
I hope this helps.
Regards,
Kristian
Thank you for your feedback
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've gotten around this limitation once by simply disabling redirecting the Assign Button and Assign to Me links to always use the edit screen where all the behaviours will engage.
I've done this with a Show Web Panel Fragment using
Location = atl.jira.view.issue.right.context
Condition= jiraHelper.project?.key == "XXX"
Script:
def html =$/
<script>
/* we catch the ticket id */
var ticketId = JIRA.Issue.getIssueId();
/* we replace the assign url for the edit one */
var assignIssueLink = AJS.$("#assign-issue");
assignIssueLink.addClass('issueaction-edit-issue')
assignIssueLink.removeClass('issueaction-assign-issue')
assignIssueLink.prop("href", "/secure/EditIssue!default.jspa?id=" + ticketId + "\"");
/* we replace the assign to me url for the edit one */
var assignToMeLink = AJS.$("#assign-to-me");
assignToMeLink.addClass('issueaction-edit-issue')
assignToMeLink.removeClass('issueaction-assign-to-me')
assignToMeLink.prop("href", "/secure/EditIssue!default.jspa?id=" + ticketId + "\"");
</script>
/$
writer.write(html)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.