Forums

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

How can I make a custom field in TM4J standard to all projects?

Vickey Lee
July 27, 2020

I have many unique projects in JIRA. Each has its own QA and Dev team. They can use TM4J to create their own Test Cases, Test Cycle and Test Plan.

 

However, I would like to add some custom fields and make them standard across all JIRA project TM4J. Is it doable?

 

Now, it seems I can create custom field only on each project. If I want to have a non-built in field for the Test Case, Test Cycle and Test Plan, I will have to create the "custom" fields with the same name in every single JIRA.TM4J project. That will be too many to do.

3 answers

Suggest an answer

Log in or Sign up to answer
0 votes
Kate Kabir
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 Champions.
October 4, 2021

Hello @sujata birajdar 

Unfortunately, it is not possible to make a field required based on other custom field values as we do not have the Behaviour feature in the ScriptRunner for Jira Cloud. However, this is something we are considering at the moment, as shown on the ticket In our public backlog located here.

At the moment, I can confirm that the ScriptRunner for Jira Cloud plugin is unable to perform any dynamic validation on issue forms like the server version can with the Behaviors feature due to the restricted functionality and API’s which Atlassian provide inside Jira Cloud as Atlassian only provides a Rest API in Jira Cloud and not the same Java API that the server version contains.

I hope this explains your enquiry.

Thank you.

Kind Regards

Kate

0 votes
naim.yilmaz
September 28, 2021

Hello,
I activated it with the Behaviors feature of the Adaptavist Scriptrunner application. 

def MergeNeedField = getFieldById("customfield_16896")
def MergeNeedDetailField = getFieldById("customfield_16890")

def selectedOption = MergeNeedField.getValue() as String
log.debug "Selected option: $selectedOption"

if (selectedOption == "Yes") {
MergeNeedDetailField.setHidden(false)
}
else {
MergeNeedDetailField.setHidden(true)
}

0 votes
naim.yilmaz
September 23, 2021

Hello @sujata birajdar 

Did you solve this problem? I need a similar structure. 

when I select the Value "Yes" from "Merge Need" field (single select), "Merge Need Detail (Multiple select field) should be see.

when I select the Value "No" from "Merge Need" field (single select), "Merge Need Detail (Multiple select field) should not be see.

 

image.png

sujata birajdar
September 27, 2021

No, I believe in JIRA cloud this functionality is not available .

Still waiting for someone to confirm or provide a solution from Atlassian Community.

TAGS
AUG Leaders

Atlassian Community Events