Setting Project using Fragment & Behaviors

Bellina Bui March 27, 2023

Overview

Hello Atlassian Community! 

In order for folks to easily create internal requests using information from the originating ticket to populate in the newly created ticket I'm using the following methods

1. fragment - constrained create issue dialog to pull up a create screen 

2. behaviors - to pull information from the originating ticket and populate it in the create screen 

Problem 

The Jira Project won't set based on the originating issue, and I'm afraid it's because constrained issue dialogs requires you to set a project and that takes precedent over the behavior. 

Any help is appreciated! 

 

def contextIssue = issueManager.getIssueObject(getContextIssueId())
def projectValue = contextIssue.getProjectObject().name

getFieldByName("Project").setFormValue("${contextIssue.projectId}")

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events