Forums

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

Formula in Jira structure to check whether a specific component is present

Zigi Fibert November 13, 2020

I'm trying to create a custom column that calculates different values based on specific components.  I'm looking for a formula that will look at the component field and determine whether the component is present.  

I think Match should do it but I can't work out how to use it with a field.

 

Help will be greatly appriciated.

 

Zigi

1 answer

1 accepted

0 votes
Answer accepted
Stepan Kholodov _ALM Works_
Atlassian Partner
November 16, 2020

Hello Zigi,

Unfortunately, the Formula column is not implemented yet in Structure Cloud. If you would be interested, we can notify you when it is released in the future.

Best regards,
Stepan Kholodov
ALM Works

Zigi Fibert November 16, 2020

Hello Stepan, in which case I'm not using Jira cloud.   I can do formula's I just don't know how to do this specific one.

Can you help me with the actual formula?

 

Regards

 

Zigi

Stepan Kholodov _ALM Works_
Atlassian Partner
November 16, 2020

If you have the Server/Data Center version, then you can use this formula:
if(search("abc", components),1)
where abc is the name of the Component. As a result, the formula will mark with "1" all issues that have this Component.

I hope this helps. If you need further assistance with the Formula column or with something else, please feel free to contact us directly at support.almworks.com and we'll get back to you shortly.

Best regards,
Stepan Kholodov
ALM Works

Like # people like this
Zigi Fibert November 17, 2020

Thank you very much, that works. 


I tried unsuccessfully to extend the formula to search for two values thus:
if(search("abc" or  "def", components),1).

How would I do that?

 

Regareds

Zigi Fibert

Stepan Kholodov _ALM Works_
Atlassian Partner
November 17, 2020

I'm glad to hear it! If you want to add another Component, it should be wrapped in the search() function individually: if(search("abc", components) or search("def", components),1)

Best regards,
Stepan Kholodov
ALM Works

Zigi Fibert November 17, 2020

Thank you, Stepan.  Much appreciated.

 

Zigi

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events