youngmon/atlassian-qna huggingface dataset:
Can you use Script Runner commands in a Quick Filter?
Asked by stephan_lewis:

I was trying to create a Quick Filter in a Sprint Board to show issues that have been added to the Sprint after it started.

I couldn't find a way to do it with regular JQL functions.

I was able to create a filter using Script Runner that does exactly what I want.

**issueFunction in addedAfterSprintStart("Aida")** where Aida is the name of my Sprint Board.

It works great as a Filter.

But when I try and use it as a Quick Filter for my board it doesn't like it.

![Quick.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/346633iADA3C802089540BE/image-size/large?v=v2&px=999 "Quick.jpg")


Answers:
author: Walter Buggenhout
body: Hi [@stephan_lewis](/t5/user/viewprofilepage/user-id/5132492),

You can share an enhanced search from Scriptrunner so you can use it as a filter in a board. From Scriptrunner documentation:

> If you need to use the results of your Enhanced Search filter inside a standard Jira filter such as a dashboard, Scrum, or Kanban board, then you can do this as follows:
>
> 1. Create the filter on the enhanced search page.
> 2. Save the filter and share it (This creates a copy of the filter as a standard Jira filter where we synchronise the list of issue keys returned by the enhanced search filter.)
> 3. While you save it, select the option to *sync* the filter (so it remains more or less up to date)
>
Use the JQL below to access the results of this filter in the feature where you need to reference it (as the JQL for your quick filter, e.g.).

    filter='NameOfHisSharedESFilter'

Hope this helps!

comments: author: stephan_lewis
body: Hi Walter,

Thank you!!! It works like a charm.

Need to find a source for all these JQL commands that I don't know


author: Nikola Perisic
body: Hello [@stephan_lewis](/t5/user/viewprofilepage/user-id/5132492)

### JQL Functions {#toc-hId--2125267675}

ScriptRunner for Jira Cloud's out-of-the-box [JQL functions](https://docs.adaptavist.com/sr4jc/latest/features/scriptrunner-enhanced-search/jql-functions) are available to all users but can only be used on the Enhanced Search screen under **Apps \> Enhanced Search**.

Below are just some examples of how you can use ScriptRunner JQL functions:

* Use [epicsOf](https://docs.adaptavist.com/sr4jc/latest/features/scriptrunner-enhanced-search/jql-functions#id-.JQLFunctionsvCurrent-EpicFunctions) to query on epic links, such as finding all epics that have unresolved stories.
* Use [issuesInEpics](https://docs.adaptavist.com/sr4jc/latest/features/scriptrunner-enhanced-search/jql-functions#id-.JQLFunctionsvCurrent-EpicFunctions) to find all stories for open epics in a project, and then look specifically at the status of issues, such as 'in progress.'

* Use [linkedIssuesOf](https://docs.adaptavist.com/sr4jc/latest/features/scriptrunner-enhanced-search/jql-functions#id-.JQLFunctionsvCurrent-IssueLinkFunctions) to return linked issues, such as all unresolved issues that are blocked by open issues.

This indicates that this cannot be used as a quick filter.


Tags: cloud

jira-cloud

quick-filter
How to reset AUI form validation for a Dialog2
Asked by Azbel Eden Garcia Escalante:

Hello, everyone.

I'm developing a Jira plugin for Jira DC 9.12.11 and using AUI 7.9.9 form validation for a AUI [Dialog2](https://aui.atlassian.com/aui/7.9/docs/dialog2.html). I'm using jQuery and JS to show and hide the dialog for different table rows within the same HTML so every time a dialog is shown the content is repopulated using Ajax for each row data by using:  

```
AJS.dialog2("#my-view-dialog").show();
AJS.dialog2("#my-view-dialog").hide();
AJS.dialog2("#my-view-dialog").on("show", function() { //Logic here });
```

The form within the dialog is [validating](https://aui.atlassian.com/aui/7.9/docs/form-validation.html) the inputs correctly by using the property **data-aui-validation-field.**

The issue I'm facing is that when having validation errors after closing the dialog using Cancel button and opening same dialog for whatever row in the table, the validation errors on fields are always shown, and by only triggering the submit and event **aui-valid-submit** is triggered the errors can be cleared.

```
AJS.$('#valid-submit-form').on('aui-valid-submit', function(event) {    console.log('Data saved');    event.preventDefault();});
```

Is there any way of resetting the validation to the original state so the errors can be cleared every time the dialog is shown? I've already tried the following without success, so there's no way to clear the validation state and errors are always shown:

* Trigger aui-valid-submit event using jQuery when closing the dialog.
* Setting correct values before closing the dialog to clear the errors.
* Removing the dialog from DOM using data-aui-remove-on-hide on the Dialog2 HTML attribute and adding it again.
* Saving the state of the dialog section/form/fields by using jQuery clone() and re-adding them again.

Thank you in advance if you can provide me with any help on this AUI issue.


Answers:
author: Azbel Eden Garcia Escalante
body: I was able to fix it by removing the attributes **data-aui-notification-error, data-aui-validation-state** and **data-aui-validation-dateformat**, and by setting them again accordingly.


Tags: atlassian-sdk

aui

data-center

form-validation

jira-data-center
I do not see "Program Epics" in the Type dropdown of the filter.
Asked by Margarita:

I am trying to create a filter by issue type of "Program Epic" in a company managed project. The Program Epic does not appear in the list to select from.

Any ideas on how we can make the field available in the dropdown? ![Program Epic missing from filter type.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/346631iF5E90EB0E0052999/image-size/large?v=v2&px=999 "Program Epic missing from filter type.jpg")


Answers:
author: Walter Buggenhout
body: Hi [@Margarita](/t5/user/viewprofilepage/user-id/4278231),

Are you sure it is available in the issue type scheme attached to your project (see if you can see it as an issue type in project settings \> Issues \> Types)? If not, it is not available in your project and an admin will need to add it.

If it is there, see if it appears if you start typing *Program ...* in the search box in your screenshot.

Hope this helps!


Tags: cloud

jira-cloud
Why does timetracking not get returned in my api call
Asked by Tim Foster:

I am trying (unsuccessfully so far) to get data from the API into Excel. I want to know three things, Original Estimate, Time Remaining and Time Spent.

If I use postman I can see the element under fields:  
"timetracking": {  
"remainingEstimate": "0m",  
"timeSpent": "6h",  
"remainingEstimateSeconds": 0,  
"timeSpentSeconds": 21600  
}  
However, when I make the call in Excel, the timetracking element does not exist. I have looped through the keys using:  

For Each key In JSON("fields").Keys  
Debug.Print key  
Next  

But it is not present in this set.

I have tried making the call to:

<https://domain/rest/api/3/issue/KEY-123>  
<https://domain/rest/agile/1.0/issue/KEY-123>

Both work, but neither includes time tracking. I can happily get other elements json("fields")("status")("name") for example, or json("key") or json("fields")("summary"), but timetracking I cannot.

What am I missing? This is infuriating!


Answers:
author: Tim Foster
body: Anyone else got any ideas? It definitely should be there and it is there in postman


author: Mohamed Benziane
body: Hi,

did you try json("fields")("timetracking")

comments: author: Tim Foster
body: Yes, I tried that, but the timetracking element doesn't exist so this fails


Tags: api

cloud

jira-cloud

rest-api
Firefox not displaying Resolution Screen Popup
Asked by Rodney Estrada:

Anyone experience the problem of the Resolution screen popup not displaying in Firefox when moving any issue to the Done status? The Resolution screen shows up in Chrome. Already checked for updates. Just curious if it was just a setting in Firefox.

Thanks,


Answers:
author: Trudy Claspill
body: Hello [@Rodney Estrada](/t5/user/viewprofilepage/user-id/4727628)

Do you have a pop-up blocker enabled in Firefox?

Do other pop-ups within the Jira application display in Firefox?

comments: author: Rodney Estrada
body: Hi [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011) ,

Apologies, I should have included that the problem was also present in a Firefox private window. I did not check other projects. I did check in the webpage inspector and it shows the following error:

**Uncaught TypeError: Node.appendChild: Argument 1 is not an object.**


Tags: cloud

jira-cloud
AUTO CALUCATE DATES FIELDS BASED ON VALUES FROM ANOTHER DATE FIELD
Asked by niranjan:

Hello Community,

I need to solve this below scenario. Any suggestion apricated.

1. Auto calculate the **ETA of Documentation** date by referencing the linked **Issue Type Task** . This process will use the **Development Completion** date from the **Issue Type Task** , add **5 business days** , and then update the **ETA of Documentation** field in the **Issue Type SFC TS** accordingly. (start development transition)
2. Similarly, Auto calculate the **ETA for Documentation Review** date by using the **ETA of Documentation** as a starting point. Add **5 business days** to this date, and then update the **ETA of Documentation Review** field with the final date. (transition - development completed)

Thanks

Niranjan


Answers:
author: Ryan M
body: Hi Niran,

<br />

I haven't tested this fully but I think something along these lines should do the trick or be a good starting point.  

**Trigger**

* Trigger when issue is transitioned between the statuses that are relevant as mentioned above. From (start status) to (end status).  

**Branch Rule**

* Here's where we'll specify the type of linked issue. You can restrict it to link types and projects here if it helps.
* **Branch Condition**
  * If issue type = Task
* **Branch Action**
  * Then: Create variable
  * create a variable using the date file from the issue found in the branch rule.
  * Lets say name = linkedDate
  * smart value would be {{issue.yourDevCompletionDateField}}

**Action**

* Edit issue
  * Edit the date field in question, ETA of Documentation, with this
  * {{issue.yourETADateField.value.plusDays(linkedDate.asNumber)}}  

    <br />

Info for smart values and formatting here <https://confluence.atlassian.com/automation/smart-values-in-jira-automation-993924627.html>

comments: author: Ryan M
body: Also if something is not showing up right, a tip in case you're not familiar would be to use the "log action" action to make sure your smart values/variables are appearing correctly. If you use log action and use your variables or smart values as the message, you can check the logs of any automation attempts and see if those are correct values, and if not troubleshoot further


Tags: automation

data-center

jira-data-center

jira-server

server
How to correctly convert mediumDateTime to mediumDate
Asked by John Block:

I have a Custom field called "StartMaintenanceTime" which allows users to select a date and time in the format of MediumDateTime. My end goal is to have this add the incidents on my Project's calendar. The Calendar itself uses the fields "StartDate" and "DueDate" to populate.

My initial solution was to create an automation that copies the value from "StartMaintenanceTime" to the "StartDate" and "DueDate" fields.

![CalendarFix_1.png](https://community.atlassian.com/t5/image/serverpage/image-id/346611iDF3754CE42C6749C/image-dimensions/226x312?v=v2 "CalendarFix_1.png")![CalendarFix_2.png](https://community.atlassian.com/t5/image/serverpage/image-id/346612i22F543E1EA7508A2/image-dimensions/284x191?v=v2 "CalendarFix_2.png")

This solution works most times however I've found that in some cases the "StartDate" and "DueDate" values copied from "MaintenanceStartTime" are incorrect. Here is an example from one of my incidents that this occurs.

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

I believe the issue is that Jira has trouble Copying a date that is in the mediumDateTime format to a field that is just mediumDate. My initial thought is that I could save a variable such as {{MaintenanceStartTime.mediumDate}} and then copy that variable to the "StartDate" and "DueDate" fields but I believe I may be doing that incorrectly.

I created a variable labeled {{MaintStart}} using the value {{MaintenanceStartTime.mediumDate}}. This however returns a value of none.![MaintStart.png](https://community.atlassian.com/t5/image/serverpage/image-id/346669iAB5FAC77931985C1/image-size/large?v=v2&px=999 "MaintStart.png")

update 9/11/24 : I am still working on a resolution. In one case I see the field for Maintenance Start time set as Sep 16, 2024, 9:30 PM. The automation runs that and it copies this field to the Start Date field. The result is Sep 17, 2024 which is incorrect.

I've tried to SET the field to {{issue.Maintenance Start Time.mediumdate}} but that returns a value of "none".


Answers:
author: John Block
body: Found the issue to be related to the Timezone users were submitting their changes in. I now have the start date being set with the following smart value to keep the dates accurate.

{{issue."Maintenance Start Time".convertToTimeZone("US/Eastern").jiraDate}}


Tags: cloud

jira-service-management

jira-service-management-cloud
How to add more columns to attendance centre
Asked by Suporte JRetail:

How can I add more Columns options to the attendance centre solicitation views, the screen I see is this:

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

If anything isn't clear enough just leave a comment and I will try to clear it for you,

Thanks


Answers:
author: Walter Buggenhout
body: Hi [@Suporte JRetail](/t5/user/viewprofilepage/user-id/1356100),

I am not sure what the *attendance centre*is, but it definitely looks like a lot like the request list in a JSM Portal, where a user can see his submitted requests.

If so, it is possible to add some additional columns there, but your Jira Administrator must make them available first from the help center. See [this support article](https://support.atlassian.com/jira-service-management-cloud/docs/customize-the-columns-in-your-customers-requests-list/) for more details on how to do this.

It may still be that not all your fields may be available to be included on the portal.

Hope this helps!

comments: author: Suporte JRetail
body: [@Walter Buggenhout](/t5/user/viewprofilepage/user-id/783225)

Thank you very much, sorry for the name confusion, my first language is not English, so I wasn't sure the official name.

I'll take a look on that artice.

Thanks.


Tags: cloud

jira-cloud
How do I fix this dashboard view to also display issues in 'Done' status?
Asked by Ariel Lowes:

l


Answers:
author: Marc - Devoteam
body: Hi [@Ariel Lowes](/t5/user/viewprofilepage/user-id/5588945)

Adjust the filter used in the gadget on the dashboard


author: Trudy Claspill
body: Hello [@Ariel Lowes](/t5/user/viewprofilepage/user-id/5588945)

Welcome to the Atlassian community.

Your post does not include any content. Can you please share the screen image for the dashboard you are trying to modify?


Tags: cloud

jira-cloud
I have a current JQL script that is project = ?DPC All Engines? AND squad=?IE?.
Asked by Elizabeth Abidakun:

The script is bringing all epics in the past fiscal year and current one, however I want it to only bring up the current year. Can you please help with what I need to add to the script? Thanks


Answers:
author: Florian Bonniec
body: Hi [@Elizabeth Abidakun](/t5/user/viewprofilepage/user-id/5588944)

Is it a JQL you are looking for ? How do you define an Epic / fiscal year ?

project = 'DPC All Engines' AND squad='IE' AND type = Epic and DATFIELD \>= 2023-01-01 and DATFIELD \< 2024-01-01

Regards

comments: author: Ralf Fehling
body: created \>= startOfYear() / created \<= endOfYear()

<https://support.atlassian.com/jira-software-cloud/docs/jql-functions/>


Tags: jira-unknown-hosting-type

unknown-hosting-type
Send Slack as DM using automation - No channel
Asked by Hizkeel Khan:

Hi,

I want to send slack message directly to someone instead of putting it in the channel. Please let me know how I can do it using automation.   

If it's necessary to send message in channel, can I mention that person everytime when rule triggers.


Answers:
author: Mohanraj Thangamuthu
body: Hello, Good day. Have you already tried the following steps![Screenshot 2024-09-11 at 10.30.35?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/346717iF7408F98F84E14F5/image-size/large?v=v2&px=999 "Screenshot 2024-09-11 at 10.30.35?AM.png")?

<https://support.atlassian.com/cloud-automation/docs/use-automation-with-slack/>

comments: author: Hizkeel Khan
body: [@Mohanraj Thangamuthu](/t5/user/viewprofilepage/user-id/4628433) - Thank you for the response. Here it is mentioning the reporter. I want to notify the client in the channel when ticket moves to the UAT column.


author: Hizkeel Khan
body: I want to tag someone... where it says "hey team" , I need to mention someone instead

[@Mohanraj Thangamuthu](/t5/user/viewprofilepage/user-id/4628433)


author: Mohanraj Thangamuthu
body: Hello, As the ID in Jira and Slack will be different, there is no direct method. You can try the steps suggested in <https://community.atlassian.com/t5/Jira-questions/Send-automatically-notification-with-direct-message-when-user-is/qaq-p/2157225>


Tags: cloud

jira-cloud
Ticket overview
Asked by S?nke Neise:

In projects, you can click on a user to view the tickets that have only been assigned to this user. But is this also possible for all projects? For example, I would like to see who has been assigned how many tickets?


Answers:
author: Mohanraj Thangamuthu
body: Hello, Good day. You can create a JQL filter with following option.

1. Assignee in (user1, user2, user3)

2. From the dashboard you can add pie chart to add this filter.

Check if this helps your requirements.

![Screenshot 2023-11-20 at 5.11.59 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/292726i745848B56BBDCF8D/image-size/large?v=v2&px=999 "Screenshot 2023-11-20 at 5.11.59 PM.png")![Screenshot 2023-11-20 at 5.12.12 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/292725i0FF162B30E1BCDBB/image-size/large?v=v2&px=999 "Screenshot 2023-11-20 at 5.12.12 PM.png")


Tags: cloud

jira-work-management-cloud
Error message when user tries to use "save filter" in work management projects
Asked by Ole Treptow:

Dear All,

I can't find my configuration mistake and need some help.

We use Jira Work Management (JWM) in Cloud and the project is company-managed.

Our users in JWM can't save their filters for the Kanban Board. If they try, this error message occurs:

![Screenshot 2023-11-20 102404.png](https://community.atlassian.com/t5/image/serverpage/image-id/292701iC2B41CA1DEE58B30/image-size/large?v=v2&px=999 "Screenshot 2023-11-20 102404.png")

As administrator, I can easily do that. The connection is stable, same set up. I impersonated the user.

My best guess is that I the permissions - either global or the permission scheme - are not configured properly. The global permisson "Share dashboards and filtes" is assigned to a users group.

Thank you in advance!


Answers:
author: Jeremy Carlson
body: I had a user that was experiencing this same issue and it turned out to be a permission issue with Team Managed projects. My user was missing from a standard group that was given global permission to **Share dashboards and filters.**After adding them to the group, the unhelpful error stopped happening.


author: Mohanraj Thangamuthu
body: Hello, Good day. Whether this user has board admin permission ? What is the change this user is trying to perform on board ?
Change deadline color for each transaction
Asked by Gustavo:

Hello, is it possible to change the same colors in the print? As soon as someone moves the item to (MAINTENANCE) change the COLOR and when it goes to (RELEASED) change the color too?  

![Captura de tela 2023-11-17 084340.png](/t5/image/serverpage/image-id/292481i957D114CDEADC1A2/image-size/large?v=v2&px=999 "Captura de tela 2023-11-17 084340.png")


Answers:
author: Mohanraj Thangamuthu
body: Hello, Good day. From the board settings card colors you can try the Queries. Please let me know if you are using "Team managed" or "Company managed" project ?

![Screenshot 2023-11-20 at 5.17.23 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/292728i7FCCA4413FE566A6/image-size/large?v=v2&px=999 "Screenshot 2023-11-20 at 5.17.23 PM.png")


Tags: cloud

jira-work-management-cloud
Automate parent to update status to done when child epics are done
Asked by Elizabeth Jones:

I am using Jira Work Management and Advanced Roadmaps Plans. I have issue types that are higher in the hierarchy than epic. I'd like to create an automation that updates the parent (higher than epic) to done, when all of the linked epics are done. Thanks!


Answers:
author: Jehan Bhathena
body: Hey [@Elizabeth Jones](/t5/user/viewprofilepage/user-id/4774578) ,

You can try out this automation "[Auto close parent issue when all sub-tasks are done](https://www.atlassian.com/software/jira/automation-template-library#/rule/140671)" : [https://www.atlassian.com/software/jira/automation-template-library#/rule-list?systemLabelId=all\&page=1\&pageSize=20\&sortKey=name\&sortOrder=ASC](https://www.atlassian.com/software/jira/automation-template-library#/rule-list?systemLabelId=all&page=1&pageSize=20&sortKey=name&sortOrder=ASC)

In this I would change the condition for "ISSUE TYPE = EPIC", and in the Related issues I'd select "Children" to make it more consistent.

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

I haven't tested this out, but in theory it should work.

If this thread helped you out, please mark this as Accepted to help the other members find this post.

Thanks.

comments: author: Elizabeth Jones
body: Thanks! This is very similar to what I have in place now; I will try it to see if it works. I suspect the root cause, and I absolutely should have mentioned this, but just realized it, is that the epics are in different projects from the parent. I'm going to try this as global instead of project specific and see if that resolves it.


author: Jehan Bhathena
body: Yes, If your Epics live in a different project then you'll have to use the Multi-project or Global automation. Single Project won't detect the issues from another project :-)


author: Jehan Bhathena
body: Hey [@Elizabeth Jones](/t5/user/viewprofilepage/user-id/4774578) ,

Thanks for the attachment,

I'd suggest adding a "Log Action" step that prints out all the tickets caught in the current run, I usually use this to find out where I maybe going wrong or the reason as to why the rule isn't running as I'd hope it to.


author: Elizabeth Jones
body: Great tip; thanks so much!


author: Elizabeth Jones
body: It doesn't appear to acknowledge the issue type as a parent of the child epic. When I do a filter for the epics, it says parent link isn't applicable, but I have used the parent link to connect them; very strange. I'll try support and see where I get :)


author: Elizabeth Jones
body: Unfortunately, It didn't work. I'll keep trying and report back if I sort it out. ![Screenshot 2023-11-18 at 10.09.04 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/292623iC151B6FDA5C6432B/image-size/large?v=v2&px=999 "Screenshot 2023-11-18 at 10.09.04 AM.png")


Tags: advanced-roadmaps

automation

cloud