Is it possible to add fields to assign screen?

Seifallah Bellassoued
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 2, 2023

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,

2 answers

1 accepted

2 votes
Answer accepted
Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 2, 2023

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

Seifallah Bellassoued
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 2, 2023

Thank you for your feedback

0 votes
PD Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 2, 2023

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)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events