youngmon/atlassian-qna huggingface dataset:
Jira Automation: Add the count of issues to version release email
Asked by Antonio Smith:

I am trying to return the count of issue types in my release automation email ut everything I've tried so far returns empty. What am I missing for this to return a count?

Release Metrics: {#toc-hId--327449585}
--------------------------------------

{{#lookupIssues}}

* **Tasks Completed:** {{version.issuesCountByType.Task}}
* **Support Issues Resolved:** {{version.issuesCountByType.Support}}
* **Bugs Fixed:** {{version.issuesCountByType.Bug}}
* **Improvements Addressed:** {{version.issuesCountByType.improvement}}
* **New Features Implemented:** {{version.issuesCountByType.New Feature}}

{{/}}


Answers:
author: Bill Sheboy
body: Hi [@Antonio Smith](/t5/user/viewprofilepage/user-id/1144013)

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!

Until we see those...

I am not familiar with "issuesCountByType". Where did you see that smart value?

If you are trying to count the issues within the Lookup Issues for a specific Issue Type you may use a [math expression](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/) and [conditional filtering](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-conditional-logic/). For example:

```
{{#=}}0{{#lookupIssues}}{{#if(equals(issuetype.name,"Task"))}}+1{{/}}{{/}}{{/}}
```

That expression would count the Task issues in the lookup result, with a default count of 0.

Kind regards,  
Bill

comments: author: Antonio Smith
body: Thank you Bill. The expression and filtering is just what I needed.


author: Mohamed Benziane
body: Hi,

you can use the lookupissue function with the size parameter. Use it with a jql that will retrieve all issue which have the version released.


Tags: cloud

jira-cloud
subtask is cloned with another type of incident
Asked by Administrador:

Hello

How can I automate that when a subtask changes to a certain status, that subtask is cloned with another type of incident?


Answers:
author: Trudy Claspill
body: Hello [@Administrador](/t5/user/viewprofilepage/user-id/4939809)

Have you tried to create that automation?

```
Trigger: Issue Transitioned
  Specify destination status
Condition: Field Value Condition
  Issue type equals subtask
Action: Clone Issue
  Specify the destination project and issue type
  Specify other fields to set, and their values
```


Tags: cloud

jira-cloud
Lost reserve key for 2 factor login and lost account for google authenticator for backup on jira.
Asked by MysticWither:

So I accidentally deleted my account on google authenticator which contains the key for opening with my phone but I accidentally deleted it and the reserve key's file is deleted because it was in downloads folder and I deleted it for saving space without knowing that the reserve key file was in. So this post was for a jira/atlassian administrator to unlock my account. My user is TheWither and Name is MysticWither in jira. Note: I use jira for minecraft bug reporting.![Screenshot_20220213-161158_Chrome.jpg](/t5/image/serverpage/image-id/183140i651AFE40FEBF8DF7/image-size/large?v=v2&px=999 "Screenshot_20220213-161158_Chrome.jpg")![Screenshot_20220213-161208_Chrome.jpg](/t5/image/serverpage/image-id/183142i76F639365F865AB7/image-size/large?v=v2&px=999 "Screenshot_20220213-161208_Chrome.jpg")


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

You will need to contact the administrators of Mojang's Jira, we (the Community and Atlassian) have no access to their systems.

comments: author: MysticWither
body: How do I contact them though?


author: Nic Brough -Adaptavist-
body: You will need to ask Mojang or other mojang users how to get in touch with the admins there.


author: Pramodh M
body: [@MysticWither](/t5/user/viewprofilepage/user-id/4756401)

Raise the Support ticket with Atlassian

comments: author: Nic Brough -Adaptavist-
body: No, this is not an Atlassian problem.


author: Pramodh M
body: [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454)

I thought he had set up 2FA for Atlassian Account and if the user has lost the verification key with everything related to 2FA, only Atlassian can save him by disabling his 2FA settings from his profile right?


author: Nic Brough -Adaptavist-
body: Nope.

Mojang are using a server/dc instance of Jira, not Cloud. The account is for Mojang systems, not an Atlassian account.

I happen to know that through simply having seen this a load before, but [@MysticWither](/t5/user/viewprofilepage/user-id/4756401) gave us a great problem report by including the URL for the Jira they are trying to get into as well

They can't have lost access to their Atlassian account - they posted here!


author: Pramodh M
body: Thanks for the Info [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454)


Tags: account
Deployment Scheduling Options in Jira
Asked by anshul_sharma:

Hi,

We have several Data Centers running multiple services that can be updated independently.

We prefer to roll them out in a staggered way and the deployments could happen at odd hours; say from 10:00pm to 2:00am.

To track this, we are currently using calendaring functionality in Confluence (Which frankly is a pain).

I am wondering if there is a way in Jira (or a Plugin) that would let me select start and end times for these deployments; also capture the actual start and end times and provide me a "Calendar View" of my deployments where I can see which Data Centers have received the latest build and which are pending.  

P.S. - Currently we capture the planned and actual start and end time in Jira, but there is no calendaring ability.

Any help is greatly appreciated.


Answers:
author: Matt Doar _Adaptavist_
body: You said DC but the question is marked as Cloud.

comments: author: anshul_sharma
body: Hi Matt: We use Jira Cloud.

The SaaS service that we provide to our customers is hosted in our own data centers.

Hope I understood your question and answered it.

Regards.


Tags: cloud

jira-cloud

jira-software
Sorting not possible by priority on Jira Plans even though priority scheme is same across source
Asked by Purusharth Chauhan:

Priority scheme for my source projects is same yet I am not able to sort on priority on Jira Plans . It says sorting not possible as priority scheme is not same

![Priority Scheme.png](/t5/image/serverpage/image-id/348213i7D3442F3C4029309/image-size/large?v=v2&px=999 "Priority Scheme.png")


Answers:
author: Purusharth Chauhan
body: Hi [@Dave Mathijs](/t5/user/viewprofilepage/user-id/2662590) , Thanks for your reply, Source scope is project . I have added 5 projects


author: Dave Mathijs
body: Hi [@Purusharth Chauhan](/t5/user/viewprofilepage/user-id/5590973) what is the scope of your issue source?

A board, a project, a filter or a combination?


Tags: data-center

jira-data-center
"Select feature" usability improvement advice
Asked by Abdurrahman KARABACAK:

I frequently use the Select feature to assign tasks to sprints in the backlog. However, there's a usability issue I keep encountering. After I move a selected task, it remains highlighted. As I move on to the next task, any action I take gets unintentionally applied to both the new task and the previously selected one, which disrupts my workflow. Could you consider modifying this so that once a task is moved, it is automatically deselected? This would help prevent accidental changes and improve efficiency.


Answers:
author: Zulqarnain Ahmed
body: I'm having trouble with the "Select" feature in the backlog. After moving a selected task, it remains highlighted, which often leads to me accidentally applying actions to both the moved task and the next one I'm working on.

Is there a way to automatically deselect a task after moving it? This would help prevent errors and streamline my workflow.


author: Dave Mathijs
body: Hi [@Abdurrahman KARABACAK](/t5/user/viewprofilepage/user-id/4467836) welcome to the Atlassian Community!

I never tried it before, but yes, I'm able to reproduce the issue and it's annoying indeed.

I would suggest to provide in-product feedback to Atlassian via the Help icon.

comments: author: Abdurrahman KARABACAK
body: [@Dave Mathijs](/t5/user/viewprofilepage/user-id/2662590) Thank you for your concern. I hope they will include this in their work list and resolve it as soon as possible.


Tags: cloud

jira-cloud
Email address in custom field being autoconverted to Website URL
Asked by John Bidwell:

Hello;

We have a custom field that stores and email address. It is a short text field. (Company managed - Software Project)

x@xyz.com as example format.

It is being displayed as //x@xyz.com and it is now a hyperlinked.

The link is: <https://x@xyz.com/>

If I edit the field, it reverts to x@xyz.com. So the data is not being changed, just changes on the display.

Can this be turned off or deactivated for email addresses? Is there a field type I should be using instead for emails?

Thanks!


Answers:
author: L?gia Zanchet
body: Hello John  

Thank you for raising this question in our community.  

This is indeed related to the recent changes, thanks Charlie for pointing this out  
Our team is already aware of this and there here is the bug raised [JRACLOUD-84725.](https://jira.atlassian.com/browse/JRACLOUD-84725)  

You can subscribe for the bug by clicking [Start watching this issue](https://jira.atlassian.com/secure/VoteOrWatchIssue.jspa?atl_token=AKVY-YUFR-9LM7-97AB_66de759857e332702acaf0624d1251e657052f6a_lin&id=2043289&watch=watch), that way you will receive the updates directly in your email.  

<br />

Thank you!


author: Charles
body: I opened ticket with Support to find out. It used to work fine, but we experience the same behavior without any changes to the field. I do suspect a bug introduced when the hyperlink rendering changed from URL Hotlink to a "preview" of the webpage.


author: Piotr Becker
body: We discovered similar issue today as well. It seams to affect Text Field (single line) but not multi line


Tags: cloud

jira-cloud
Copying project settings. Workflows and Schemes
Asked by Christopher Brinson:

Hi, feel free to link this to a similar post and I can go read there.  

I need to know for templatisation sake, is there a way to copy a project and have it clone all the schemes and configurations from the project to a new set of schemes, instead of being mapped to the previous projects schemes?  

Example:  

I copy Super Cool Neat Projects settings to Probably Cool Project and currently SCNP: Task Worfklow, SCNP: Field Configuration, and SCNP: Story Screen are automatically assigned to the new PCP project.  

It'd be helpful if it would copy the schemes, and assign PCP: Task Workflow, etc automatically without me having to go back and manually copy and assign each Workflow, Screen, and scheme manually.  

I need native solutions first, no apps or app advertisements. If there is absolutely no native solution, feel free to suggest an app.


Answers:
author: Trudy Claspill
body: Hello [@Christopher Brinson](/t5/user/viewprofilepage/user-id/5596743)

Welcome to the Atlassian community.

There is not a native solution available via the UI. It *might* be possible to create your own custom solution using the Jira REST API.


author: Luka Hummel - codefortynine
body: Hi [@Christopher Brinson](/t5/user/viewprofilepage/user-id/5596743) and welcome to the community!

There is no native solution within Jira's UI to automatically create new schemes and workflows when copying a project. However, if you're open to using third-party apps, our app [Deep Clone for Jira](https://marketplace.atlassian.com/apps/1218652?utm_source=atlassian&utm_medium=referral&utm_campaign=deepj-new-reach-com-2816568) is an excellent option for automating this process. It allows you to clone not only issues but also project configurations, workflows, and schemes efficiently, with our [Project Clone](https://documentation.codefortynine.com/deep-clone-for-jira/project-clone?utm_source=atlassian&utm_medium=referral&utm_campaign=deepj-new-reach-com-2816568) feature. In Deep Clone, you can configure which schemes you want to clone and automatically associate with the new project.

![2024-09-24 14-20.png](https://community.atlassian.com/t5/image/serverpage/image-id/348969i44233EA73D9013D3/image-size/large?v=v2&px=999 "2024-09-24 14-20.png")


Tags: cloud

jira-cloud

standard
Duration more than 30 days query
Asked by Elaine Ocson:

Hi everyone, I need some help creating an advance search in Jira but I'm not sure if it's possible.  

Here's the scenario: I need to retrieve all tickets where, based on the start date and end date, the duration between them is more than 30 days.

Any help is appreciated! Thank you!


Answers:
author: John Funk
body: Hi Elaine,

One way would be to create a custom number field and then create an automation rule to update the custom field based on a diff between the two dates. Then you could run a query where the value of the custom field \> 30.

comments: author: Trudy Claspill
body: Adding to this...

Jira's native search capabilities do you support imbedding in the query a comparison of two date fields nor a calculation of the difference between date field and criteria for the query.

Are you willing to consider a third party app if one could give you the date differencing capability directly in the query?


author: Elaine Ocson
body: Got it, thanks so much John and Trudy! As a quick workaround I just exported the list of tickets in a spreadsheet and added a formula there. Thanks again!


Tags: data-center

duration

enddate

jira-data-center

startdate
How To Delete A Board As Org Admin
Asked by Diatta Harris:

I am the Org Adm for our cloud instance of Jira and am attempting to delete some boards we are no longer using. I pull up the board to delete by clicking the 3 dots but the delete option is not available. It's a company-managed board. What could be the issue? Thank you in advance for any assistance you can provide.


Answers:
author: John Funk
body: Hi Diatta,

You must be a Jira Administrator or an Administrator of the board to be able to delete it.

comments: author: Diatta Harris
body: I am the Jira Administrator. I still do not see the delete option when I click the ellipses.


Tags: cloud

delete-board

jira-cloud
Custom field order not being reflected in projects
Asked by Kaitlyn Hoban:

Issue is: custom fields and field order are not being populated across projects that have the issue screen scheme assigned.

Workflow, field configuration and screens have all been assigned accordingly. I'm able to verify through the Project Settings\>Summary\>Screens that the screen assigned is there and when verifying the screen scheme the order and fields needed are there. Once out of the project settings, the project doesn't reflect the fields nor field order that project settings showcases. Out of the near 15 issue types that can be created for this project, only 2 are having this issue Project and Bug.

Thoughts?


Answers:
author: John Funk
body: Hi Kaitlyn - Welcome to the Atlassian Community!

Yes, the screen will have the base set of fields available and you can put them in the order you want. However, there is an Issue Layout view for each project for each screen that can be changed by project administrators for the project. So just because the screen configuration has a certain order and is used by multiple projects, the order of the fields can be changed by project to be different.

To see that, while on an issue, scroll to the very bottom right of the screen. You should see the Configure link. Click on that and you can see that you can change the order and where on the screen the issues appear.

comments: author: Kaitlyn Hoban
body: Hi John! Appreciate your advice. I'm with you, scrolling to configuration is where I can change the fields on this project level basis, but I have the issue screen schemes attached to specific fields so the field order can be managed on a more global level. That is where i don't understand why these two types of tasks out of 15 are not following their assigned issue screen schemes. I can confirm that no administrators have altered the order of the fields on the individual project level basis. So they should in the order of the issue screen scheme

I'll attach a few screenshots. One of the individual project view, which indicates what issue screen scheme the issue type is assigned. and then one of the issue screen scheme itself. You can see they don't match, neither the type of fields nor there order. I'm not sure where its going rogue.

First image is the individual project configuration screen. showcasing what screen is being used for Epic

Second image is the issue type screen scheme that is titled IT-Epic Screen.

![individualprojectview.png](https://community.atlassian.com/t5/image/serverpage/image-id/348212i3CF4B836E1B4521A/image-size/large?v=v2&px=999 "individualprojectview.png")![issuescreenschemeview.png](https://community.atlassian.com/t5/image/serverpage/image-id/348211i89C914C66264AE32/image-size/large?v=v2&px=999 "issuescreenschemeview.png")


Tags: cloud

jira-cloud
Sharing Advanced Roadmaps with Jira user groups
Asked by Kate Secor:

We are using Jira user groups as a way of controlling access to our projects. Our users would like to be able to share the Advanced Roadmaps for those projects with those users groups, so that they don't have to constantly be going in and fiddling with the shares.

I seem to be able to do this with my admin login, but my user can't. Is there a permission I'm missing somewhere, or is this feature not available to non-admin users?


Answers:
author: Sergey Troshin
body: Hi Kate,

It is possible. Go to Plan configuration, then permission section (1), then add some lead user in **Edit** field (2), so after this he can manage plan access section.  
![screen.png](https://community.atlassian.com/t5/image/serverpage/image-id/348292i4FA32034291EF8A5/image-size/large?v=v2&px=999 "screen.png")  
Also pay attention to the global **Advanced Roadmaps permissions** . By default it looks like:  
![screen2.png](https://community.atlassian.com/t5/image/serverpage/image-id/348293i51705A2800A603C7/image-size/large?v=v2&px=999 "screen2.png")  

Hope it will help you!


Tags: advanced-roadmaps

data-center

jira-data-center
Can "mention" notification emails show the images (w/o opening the Jira issue)?
Asked by Lexi Perlmutter:

Hi, Jira Gang!  

My team works with a lot of "mentions" in our Jira issues.  

My boss has asked me to figure out whether email notifications where someone has "at-ed" you can show images (we use a lot of screenshots in Jira) in the actual notification email, as opposed to having to open the Jira issue itself to see the images?  

I'm not an admin. for our Jira account, just a lowly user. ;-)   

Does anyone have any ideas? (And does my question even make sense?)  

Thanks, y'all!


Answers:
author: Brant Schroeder
body: [@Lexi Perlmutter](/t5/user/viewprofilepage/user-id/5596679) Welcome to the Atlassian community

This KB should help you resolve the issue <https://confluence.atlassian.com/jirakb/image-attachments-are-not-displayed-in-emails-1021245523.html> You will need to work with your administrator to resolve the issue for a couple of the solutions.

comments: author: Lexi Perlmutter
body: Thanks, Brant! I'll look into this...


Tags: cloud

email

images

mention

notification
Linking Start and Due Date of Child Issues to Parent
Asked by Daniel Welch:

Hi there,

Trying to automatically set the start and due date of a parent based on the earliest and latest date of child issues. Can you point me in the direction of an answer please?

Dan


Answers:
author: Bill Sheboy
body: Hi [@Daniel Welch](/t5/user/viewprofilepage/user-id/4985440) -- Welcome to the Atlassian Community!

If you search this community, you will find several posts for this same question and different solution approaches.

One way to do this is with automation rules; the specifics depend upon when / how accurately you want the parent updated.

For example, let's assume you want a parent Epic updated when the Start Date or Due Date changes in a child issue. The rule could trigger on a change to the date field(s), use the Lookup Issues action to gather the other children, and then find the correct values to update the Epic:

{{lookupIssues.Start date.min}} and {{lookupIssues.duedate.max}}

Additional rules could trigger on adding / removing issues to the Epic, manual tampering with the Epic fields, etc.

To get you started on creating your rule(s), please refer to these documentation and example sources:

* <https://www.atlassian.com/software/jira/guides/automation/overview#what-is-automation>
* [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)
* <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/>
* <https://support.atlassian.com/jira-software-cloud/docs/use-advanced-search-with-jira-query-language-jql/>

Kind regards,  
Bill


Tags: cloud

jira-cloud
How to send an attachment to a REST service
Asked by Cristian Yuste:

Hello,

I am trying to create a ScriptRunner post-function where I send the attachment in a ticket to a REST service via POST. According to the documentation of this service, I need to send the binary content of the attachment.

I have seen in the Atlassian documentation (<https://docs.atlassian.com/software/jira/docs/api/9.12.2/com/atlassian/jira/issue/attachment/class-use/Attachment.html>) that there is a method in the AttachmentManager class (streamAttachmentContent(Attachment attachment, InputStreamConsumer\<T\> consumer)) which returns the binary content of the attachment, but I don't know how to handle the second parameter of the InputStreamConsumer. Can anyone give me a hand?

Thanks,  
Best regards.


Answers:
author: Sergey Troshin
body: Hi Cristian,

You picked up rigth path! Let me provide you some java method that returns first attachment for issue ABC-1234 in **bytes**

```
import groovy.transform.Field;
import org.apache.commons.io.IOUtils;
import com.atlassian.jira.issue.Issue;
import com.atlassian.jira.issue.AttachmentManager;
import com.atlassian.jira.issue.attachment.Attachment;
import com.atlassian.jira.component.ComponentAccessor;

@Field final AttachmentManager attachmentManager = ComponentAccessor.getAttachmentManager();
@Field Issue issue = ComponentAccessor.issueManager.getIssueByCurrentKey("ABC-1234")

getAttachmentFileBytes(issue.getAttachments()?.getAt(0))

byte[] getAttachmentFileBytes(Attachment attachment) throws IOException {
return attachmentManager.streamAttachmentContent(
attachment,
inputStream -> {
try (inputStream) {
return IOUtils.toByteArray(inputStream);
}
});
}
```

Hope it will help you!


Tags: data-center

groovy

jira-data-center

jira-server

scriptrunner
video files attached to tickets
Asked by Dick:

How large of a video can be attached to a jira ticket?


Answers:
author: Dave Mathijs
body: Hi [@Dick](/t5/user/viewprofilepage/user-id/3953086) welcome to the Atlassian Community!

The default attachment size is 1 GB per file, the maximum attachment size per file is 2 GB.

See the following documentation article for reference: [Configuring file attachments](https://confluence.atlassian.com/servicedeskcloud/configuring-file-attachments-1097176669.html)


Tags: cloud

jira-cloud