Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to make system field "Epic link" mandatory in Jira edit issue screen?

Shivaprasad Hattaraki
Contributor
October 14, 2018

I want to do Epic link required in Jira edit issue screen by using behaviour script.

Can you help me with script..

3 answers

1 accepted

0 votes
Answer accepted
Shivaprasad Hattaraki
Contributor
October 15, 2018

I have used behaviour script for this.. 

steps 1: Add behaviour 

          2: Add field ex: Epic Link

              And paste the script in server side script 

         3: Add mapping Ex: projects and issue types and SAVE. 

 

//Script 

if(getAction() == null){

    getFieldById(getFieldChanged()).setRequired(true)

}else{

    getFieldById(getFieldChanged()).setRequired(false)

}



0 votes
Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 15, 2018

Hello @Shivaprasad Hattaraki

If you are fine with epic link being mandatory in both create and edit screen then you dont' need any plugin for it. Just make the field mandatory in the field configuration which is associated with the issueType having the Epic link field.

Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 15, 2018
Like • 2 people like this
Jagriti
Contributor
July 11, 2019

@Tarun Sapra 

Hi

Is it possible to make "epic Link" field mandatory in this way .

I want it mandatory for story (child of epic) 

But under configuration schemes , Epic link is "locked" no way to make this mandatory from here .

 

any suggestions?

Like • 5 people like this
Michael Aglas
Contributor
September 7, 2023

it is not possible for Epic Link field

I think otherwise this questions wouldn't been raised

0 votes
Matthias Gaiser _K15t_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 14, 2018

Hi @Shivaprasad Hattaraki,

I've found this question and answer by other users which might help you.

On the other hand: Does it need to be in the edit screen or is the create screen also fine? You could follow this JIRA Knowledgebase article how to do this with a validator on the create transition.

Cheers,
Matthias.

Shivaprasad Hattaraki
Contributor
October 15, 2018

It is fine with both create and edit screen.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events