Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

in a Behaviour how can I know if create screen triggered by "create issue in epic" action/button

Hello 

I am trying to restrict issues types available when user clicks the "create issue in epic" button from an Epic. The behaviour is on the create screen and if I try 

log.debug("actionName=" + actionName)  ... I get "Create" 
log.debug("underlyingIssue.parentObject=" + underlyingIssue.parentObject) .. I get "null" 

any ideas ? 

Cheers in advance. Luka

 

 

 

 

1 answer

Hello Luka,

To achieve your requirement, I believe you should retrieve the issue type on the create screen.

Here's the sample script:

if (getActionName() in ['Create Issue', 'Create']) {

def issueTypeName = getIssueContext().issueType.name

if(issueTypeName == 'Epic'){ //if it's epic

//your code

}

}  

 May I know is this what you are asking for?

thanks for the fast reply! 

what I am trying to do is: find a way to check if the create screen has been triggered by the "create issue in epic" action in an epic. ( and if it has then limit the issuetypes available) 

If you click the "create issue in epic" action in an epic it will open up a create issue screen and set the issue type to the last issuetype you created .. it could be epic or issue or bug or whatever you created last. So checking issueTypeName == 'Epic' will not help :-( 

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you