youngmon/atlassian-qna huggingface dataset:
Required field based on the value of another field
Asked by Lurd Rodriguez:

Hi everyone.

I am trying to make a custom field mandatory based on the value of another field. Let's see if someone can help me.

Thank you in advanced.


Answers:
author: Adolfo Casari
body: [https://marketplace.atlassian.com/apps/1215833/proforma-forms-checklist-for-jira?hosting=datacenter\&tab=overview](https://marketplace.atlassian.com/apps/1215833/proforma-forms-checklist-for-jira?hosting=datacenter&tab=overview)

There is a free version limited to 3 forms templates:

[https://marketplace.atlassian.com/apps/1219499/proforma-lite-forms-checklists?hosting=datacenter\&tab=overview](https://marketplace.atlassian.com/apps/1219499/proforma-lite-forms-checklists?hosting=datacenter&tab=overview)


author: Klaudia Sch?n_Deviniti_
body: Hi [@Lurd Rodriguez](/t5/user/viewprofilepage/user-id/5545901)

I work at Deviniti where we provide [Extension for JSM app](https://marketplace.atlassian.com/apps/1212161/extension-for-jira-service-management?hosting=datacenter&tab=overview) - one of the app which allows you to achieve your goal :)

One of this app features is a dynamic forms. Using this one, you can build dependencies between custom fields and show then only if necessary. Otherwise, they can be hidden. It's also possible to decide whether the field is required or not based on the specific rules.

I strongly encourage you to schedule a meeting with our team using our Calendly: <https://calendly.com/deviniti> to see how the app works in the practive.

Best,  
Klaudia


author: Seon Shakespeare
body: Hi [@Lurd Rodriguez](/t5/user/viewprofilepage/user-id/5545901),

Welcome to the community!

While JSM doesn't have built-in support for making a field required based on another field's value, here are some options you could consider:

**1. ScriptRunner for Jira:**

* At my company, we use ScriptRunner Behaviours to add this kind of dynamic functionality to our JSM portals.
* You can write scripts to create custom field validators that check other field values and make fields required conditionally.
* ScriptRunner is available on the Atlassian Marketplace.

**2. Multiple Request Types (For Different Scenarios):**

* If you need different sets of required fields for distinct use cases, create separate request types for each scenario.
* Use clear descriptions to guide users to the correct request type.

**3. Marketplace Apps:** Explore other apps that offer conditional logic for JSM forms.

I recommend ScriptRunner for flexibility and control, but multiple request types are a simpler alternative.

Hope this helps!


Tags: attribute

custom-field

data-center

jira-service-management

jira-service-management-data-center
Cloud Automations | Smart values date and times - last bussines day of year-1
Asked by Jens Hoffmann:

Hi all,

I would like to automatically display the last day of the previous year. I tried that with this smart value: {{now.startOfYear.minusDays(1).format("dd.MM.yyyy")}} Unfortunately without success. May you please assist me?

Thanks and best regards,

Jens


Answers:
author: Kris Dewachter
body: Hi [@Jens Hoffmann](/t5/user/viewprofilepage/user-id/4323087) ,

As far as I can see, there is no "startOfyear" smart function.

Can you give this a try ?

**{{now.startOfMonth.withMonth(1).minusDays(1).format("dd.MM.yyyy")}}**

Best regards,

Kris


author: Jens Hoffmann
body: Hey Kris, it works. Many thanks :)

![Screenshot 2024-07-18 091544.png](https://community.atlassian.com/t5/image/serverpage/image-id/336247i63981D56C2D8AF2B/image-size/large?v=v2&px=999 "Screenshot 2024-07-18 091544.png")

comments: author: Kris Dewachter
body: Hi [@Jens Hoffmann](/t5/user/viewprofilepage/user-id/4323087)

Nice to hear.

Please feel free to click the green "Accept Answer" button if my answer was helpful.

Thank you and best regards,

Kris


Tags: cloud

cloud-automation

dates

jira-service-management

jira-service-management-cloud

smartvalues
How can I avoid the end user adding the wrong approver?
Asked by Carson Sham:

How can I avoid the end user adding the wrong approver? for example, the wrong Top management staff are supposed not to approve that user.


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Carson Sham](/t5/user/viewprofilepage/user-id/5432685) and welcome to the community!

Since you are on a premium plan, I would suggest to use Assets and prepopulate the approver field, based on the schema you create. E.g. you will create an Employee object type, which will take an attribute of type User named "Jira User" and another User Attribute called "Approver". Jira user will correspond to the actual jira user while on the approver you will set the default approver for each user.

Then add a post function (or an automation) to autopopulate the approver field based on the above schema.

Let me know if that helps!

comments: author: Carson Sham
body: As we were using the Standard version before, can we have a short-term(Quick win) solution before we create an Employee object type?

Can we use Automation to handle this first?


author: Carson Sham
body: [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197) Can you please help to advise? Can we use Automation to handle this first? Many thanks.


Tags: cloud

jira-service-management

jira-service-management-cloud
How do I setup Jiras tickets to be created daily on working days only?
Asked by Joleen Hung:

We automate our Jira creation such that Jira Tickets are created automatically for daily tasks. This currently works but I noted that Jira tickets are also created during the weekend or non working days as well. **How do I set it up so that the tickets get created daily for working days only**?


Answers:
author: Hans Polder
body: [@Joleen Hung](/t5/user/viewprofilepage/user-id/5545757) ,

I assume you are using a Scheduled Jira Automation to establish this? If that's the case, simply adjust the occurrence to run 'Weekly', and only select the days you want it to run on.

![Screenshot 2024-07-17 092558.png](https://community.atlassian.com/t5/image/serverpage/image-id/336026iD7416464B09EBE3D/image-size/large?v=v2&px=999 "Screenshot 2024-07-17 092558.png")


Tags: cloud

jira-service-management

jira-service-management-cloud
Jsm problem
Asked by Pablo Mar?n:

I have a problem with a project I manage in JSM. I explain to you in case you can help me or if you know what may be the cause. I have a support project for a company that they use Basecamp to manage their teams, the problem is that when we create an incident do not do it directly from the portal, simply add our support address in their systems and we create the Ticket.

1. 1) The first problem is that when they comment in their Basecamp in the thread of that ticket they have created, a new ticket is generated in our systems (Jira). For us it is a problem because we are filled with new tickets that are actually replies to the main one and we have no way to merge them.
2. 2) The second problem and perhaps more important for us is that when we comment on that ticket that has been created in JIRA (through our Jira panel) they do not receive it in Basecamp, it is not reflected in their Basecamp thread. There is something that I am not understanding, maybe I can intuit that the messages that are sent in an automated way when we comment the incidents in Jira, maybe they should have some kind of structure so that Basecamp organizes them in the correct place and the same with Jira.

*** ** * ** ***

Thanks for all the help you can give us.


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Pablo Mar?n](/t5/user/viewprofilepage/user-id/5260587)

About your first problem, this behavior seems quite normal. In order for Jira to add a comment to an existing issue, they jira key of that issue should exist on the email's subject. If it doesn't exists, then a new ticket will be raised.

About the second problem, you should verify that the reporter of the issue is the email belonging to basecamp. Jira will NOT send any email to any external user which is not a customer of the project.

Let me know if that helps.


Tags: cloud

jira-service-management

jira-service-management-cloud
Increase number of months based on a smart value
Asked by Ste404:

Hi there,

I have a smart value which represents a number of months.  

I am trying to increase a field by the smart value.  

I have tried

{{issue.Event date.plusMonths(FrequencyMonths)}}  

{{issue.Event date.plusMonths({{FrequencyMonths}})}}  

Neither work.

Is there a way to do this with a smart value?


Answers:
author: Chrissy Clements
body: Try something like this: {{now.plusDays(60)}}

comments: author: Ste404
body: works with a number, I need it to pick up a field from an issue.

Tried the smart value or the issue field.. nothing works


author: Ste404
body: ah sorted it.. needed .asNumber


Tags: cloud

jira-service-management

jira-service-management-cloud
Duplicate Tickets from Email Responses
Asked by Thomas Applebay:

We have an interesting scenario that I'm not if it's resolvable. Here is the scenario:

1. Customer submits a request to our Project through the customer help portal using their provisioned account (via Google) (username@example.testing.com).
2. Customer receives email notifications as the request (ticket) progresses through the flow.
3. Customer responds to one of the generated emails (i.e. An agent added a comment), but they respond from one of their email alias' (username@testing.com).
4. Both domains are claimed (from both examples above), but JSM does not know that both email addresses are the same customer.
5. Another ticket is opened by JSM with the customer's email response as the system thinks it is a different user.

We unfortunately cannot lock down Jira so that only users from this domain: username@example.testing.com can submit tickets as we have outside entities that need to submit tickets as well. I have considered setting up SSO through our IDP (PortalGuard), but I don't think that would help in this situation (forcing users to auth through SSO) as that would also cause issues with the users who do not have accounts in our system.

Hopefully that made sense.


Answers:
author: Chrissy Clements
body: The issue arises because the alias lacks the necessary permissions for the ticket. I'm not sure on the best way to navigate this to be honest, other than end user training.


Tags: cloud

jira-service-management

jira-service-management-cloud
Differences between Confluencfe and Knowledge Base
Asked by Demo User:

![?? (13).png](https://community.atlassian.com/t5/image/serverpage/image-id/335768i4D47E3B4AC7C7A98/image-size/large?v=v2&px=999 "?? (13).png")

![?? (12).png](https://community.atlassian.com/t5/image/serverpage/image-id/335769iDBB9671696593457/image-size/large?v=v2&px=999 "?? (12).png")

I believe the Knowledge Base is available in Jira Service Management without a Confluence license, but as shown in the first image, the "Create Knowledge Base" shown on the right side is the JSM Knowledge Base that can be used without a license, and the "Confluence Page/Whiteboard" shown in the center of the screen as shown in the second image The "Confluence page/whiteboard" that appears in the center of the screen in the second image is not a function of the Knowledge Base, but is linked to Confluence, and requires a license?


Answers:
author: Pavol Go?al
body: Hello,

**Confluence** is a product from Atlassian, that you can use to create a knowledge base.

**Knowledge base**is a store of information or data that is available to draw on.

So you can use Confluence (as a product) to create spaces and these spaces contain your knowledge base.

Then in JSM project, you can link your existing Confluence space to the project or create a new space (which will also create space in Confluence).

To use Confluence, you need a license (it's free up to 10 users). You can find the pricing details [here](https://www.atlassian.com/software/confluence/pricing).


Tags: cloud

confluence

jira-service-management

jira-service-management-cloud
Linked Issues Status Updates with different workflows
Asked by Evan Giordanella:

I have a service desk project and when an agent transitions an issue to "Waiting for Development" it creates an issue in a different project. When the target issue moves from "TODO -\> IN PROGRESS" I want to update the service desk project's tickets' status to "DEVELOPMENT IN PROGRESS". I can not find a way to update linked tickets statuses that do not match the same status. Thanks!


Answers:
author: Florian PEREZ
body: What are the tools you got on disposal?

As far as I know you can do that with the plug-ins automation or the plugin script runner.

There's plenty of way for doing this (depending of the use case) so can you please add a bit more informations :

* Is it possible to add more than one issue from the target issue?
* Have you set up a link between the issues?

As I know more about this I'll be able to help you more!

comments: author: Evan Giordanella
body: Hi, yes the service desk project adds a link to the engineering team's project. The ticket is "caused by" as the link type. I do not have any plugins since I am hoping to do this with just automation that is provided.


author: Florian PEREZ
body: OK so you have automation witch is a plugin.

I guess you're on cloud version since automation is given for free only on cloud version! I'll take some time tomorrow to do some tests but it should be some kind of :

When transition

If status is

Then

Branch \> On linked issue (you can chose all link or specify the link)

Transition to status...

I'm on my phone so I'll be not able to be more precise but with this you should be able to make some test and get something working
Manually trigger, lookup isssues and edit issue
Asked by ???:

Warm greetings from Korea.

I want to know the way to search for some issues and edit its fields.

When I choose "manually triggered", only the one issue that I clicked is edited.

I want to click one issue \> manually trigger \> change bunch of issues that satisfy the JQL.

Will be waiting for your answer

Thank you :)

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/171380i3984206FAA05EEEF/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Bill Sheboy
body: Hi [@???](/t5/user/viewprofilepage/user-id/4183439)

The rule you posted appears to do that, using a JQL branch to iterate on some specific issues, triggered manually. What happens when you run that rule that does not work as you expect?

Kind regards,  
Bill

comments: author: ???
body: The number of searched JQL(Branch) is ++***two***,++

But the log shows the Branch rule has been ***++act on only one issue.++***

So only JG-2613 has an comment finally.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/171552iF4ABA1231FAFF388/image-size/large?v=v2&px=999 "image.png")![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/171553i04B72D478A1BC052/image-size/large?v=v2&px=999 "image.png")


author: Bill Sheboy
body: Thank you for that information.

Was one of the issues you expected to see in the branch loop the trigger issue?

Is so, automation rules add exclusion JQL to remove the trigger issue from branches. This prevents a possible collision, looping, or duplicated processing conditions.

The work-around would be to add the comment to the trigger issue before or after the loop, and let the branch process all of the remainder.
How to Hide a custom fields in JIra Cloud using Script runner or any other solutions for that.
Asked by SURESH G:

Hi, I am using Jira cloud and i want to hide some custom fields in Jira for specific Project and we are using Script runner but in cloud we don't have behaviors in Jira Cloud. So, how i can i achieve this criteria.  
Please help me, Thanks in advance.


Answers:
author: Cat W
body: You can hide the fields in the issue layouts for that specific project. That would allow you to continue to use the shared configuration schemes but keep the fields from being visible in that project. Keep in mind you'll need to do it for each issue type in the project.

[Configure field layout in the issue view - Hidden fields](https://support.atlassian.com/jira-software-cloud/docs/configure-field-layout-in-the-issue-view/#Configurefieldlayoutintheissueview-Hiddenfields)


author: Curt Holley
body: By using different screen schemes for the different projects. Check this out.  
[Specify field behavior \| Atlassian Support](https://support.atlassian.com/jira-cloud-administration/docs/specify-field-behavior/)

comments: author: SURESH G
body: Thank you [@Curt Holley](/t5/user/viewprofilepage/user-id/3527535) for your Response.  
We are using the same Schemes for many projects (like 100+) using separate schemes is not something i am looking for.  
Let me know if i can do with Script runner like how we can use behaviors in Server or DC the same way i want to achieve in Cloud But in Cloud we don't have behaviors.   

Any other suggestions will be much appreciated.  
Thank you.


author: Curt Holley
body: You could do it via the Context of the custom fields, but you will run into the same (Admin overhead) there, if you have to move out of Global project setting and having to select each project you want it viewed on.  

Personally, I don't know if there is a way to do this via Scriptrunner cloud (sounds like not). Perhaps ask them?


Tags: custom-field

jira-cloud

scriptrunner
Configure outgoing webhook using Automation for JIRA
Asked by Janakiraman S:

Hi Team,

I have a usecase to send a post request (that creates a ticket) in another application. This should occur when an issue is transtioned in JIRA from Open to ToDo status. I receive 302 error. I suspect I am missing certain required headers. Here is a snapshot of my rule.

![image.png](/t5/image/serverpage/image-id/171581iB375006950460F05/image-size/large?v=v2&px=999 "image.png")

Could you please suggest if I am missing something here?

Thanks \& Regards,

Janaki.


Answers:
author: Darryl Lee
body: 302 error means page was temporarily moved. Can you see anything more if you expand the Response 302 FOUND error?

My guess is that it's probably redirecting you to an authentication page. It looks like you're trying to create a ticket in another system? It's highly likely you'll need some kind of credential to do that.

So yes, something in the headers. Or in the body. Currently you're not sending any content to the webhook. So even if a ticket is created in the system, it's not going to have any data.

comments: author: Hossam.Khalil
body: Hi Darryl,

i have the exact same problem. Our use case is to create Confluence page from a Jira Ticket, with a trigger.

here is my log:

```
Cache-Control: no-store
Connection: keep-alive
Content-Length: 0
Content-Security-Policy: frame-ancestors 'self'
Content-Type: text/html;charset=UTF-8
Date: Wed, 08 Mar 2023 10:21:28 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Keep-Alive: timeout=20
Location: /login.action?os_destination=%2Fdisplay%2FPS%2FPage%2BRepository%2Frest%2Fapi%2Fcontent%2F&permissionViolation=true
Set-Cookie: JSESSIONID=1DD2C228105685141F351F3797AC06F2; Path=/; HttpOnly, BIGipServer~LB-LAN-Exterrn~R52-Confluence-Test=rd3o00000000000000000000ffff0a7f0733o8090; path=/; Httponly; Secure
X-Confluence-Cluster-Node: 4561f997
X-Confluence-Request-Time: 1678270888612
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
```

Could you please advise?

BR

Hossam


Tags: jira-software
Update story point as the sum of story points of linked issues
Asked by Apoorva Pahuja:

I need to update the story point of an "Initiative" as the sum of the "linked" epics. So epics are linked to the initiative (not as a subtask but as a link). Whenever the story point of the epics change, the change should get reflected in the way that the sum of story points of all the linked epics should be = story point of the initiative

1. When: the value of story points changes

2. If the issue type is epic and there are linked issues

3. For the linked issues (which means the for initiative}

Story point = {{issue.issuelinks.Story Points.sum}}

However, this is not working. The story point for the initiative is zero even when the story point for epic has values

This is similar to what was done here

<https://www.atlassian.com/software/jira/automation-template-library/sum-up-story-points>

Please help, urgent!


Answers:
author: Fernando Eug?nio da Silva
body: We managed to get a sum of story points with the attached structure:

![Story Points SUm.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/171981iD4D3423D7CB72F9D/image-size/large?v=v2&px=999 "Story Points SUm.PNG")

But here are the details:  
WHEN: Field Value Changed to STORY POINTS

IF: Issuetype does not equal: EPIC

BRANCH: For Epic (Parent)

ACTION: lookup issues and include a JQL: "Epic Link" = {{issue.key}}  
ACTION: EDIT ISSUE FIELD: Story points

Value: {{lookupIssues.Story Points.sum}}

This was the way we managed to sum up Story Points.

If this doesn't bring you the expected result, let us know.


author: Eli Solutions Team -Eli Solutions-
body: If you are adding points between linked issues, you could also do it through the explanation found here: You can find the full details here as well: <https://community.atlassian.com/t5/Automation-articles/Jira-Automation-Sum-Up-Story-Points-from-Epics-e-g-Initiative-gt/ba-p/1926311>